Hey Guys, basically I'm not sure when to use SetPData instead of sql.Query.
Also, how does SetPData work?
Thanks in Advance!
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Player/SetPData]Player:SetPData[/url] basically uses [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/sql/Query]sql.Query[/url] in the most generic way to cover a large range of uses without having to put much work into it yourself. You can see how it's implemented [URL="https://github.com/Facepunch/garrysmod/blob/42d3200716f58654e5a7dfd7aedfb538d59c06a1/garrysmod/lua/includes/extensions/player.lua#L177-L182"]here[/URL]. Use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/sql/Query]sql.Query[/url] when you want to have a more efficient storage system.
[QUOTE=bigdogmat;52419741][img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Player/SetPData]Player:SetPData[/url] basically uses [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/sql/Query]sql.Query[/url] in the most generic way to cover a large range of uses without having to put much work into it yourself. You can see how it's implemented [URL="https://github.com/Facepunch/garrysmod/blob/42d3200716f58654e5a7dfd7aedfb538d59c06a1/garrysmod/lua/includes/extensions/player.lua#L177-L182"]here[/URL]. Use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/sql/Query]sql.Query[/url] when you want to have a more efficient storage system.[/QUOTE]
And that's why I love you <3
Sorry, you need to Log In to post a reply to this thread.