• Make ulx warp permanent
    8 replies, posted
So my last forum, didnt get any repleys. But can anyone help me with making !setwarp a permanent thing
If you want to save any data in GMod for later use, you need to write & read data to a file or database. Some helpful links: [url]http://wiki.garrysmod.com/page/Category:file[/url] (if you want to use files) [url]http://wiki.garrysmod.com/page/Category:sql[/url] (if you want to use gmod's database)
[QUOTE=Remixful;51282106]If you want to save any data in GMod for later use, you need to write & read data to a file or database. Some helpful links: [url]http://wiki.garrysmod.com/page/Category:file[/url] (if you want to use files) [url]http://wiki.garrysmod.com/page/Category:sql[/url] (if you want to use gmod's database)[/QUOTE] I never used file, can you give me a example?
[QUOTE=Jason138;51282293]I never used file, can you give me a example?[/QUOTE] [URL="http://wiki.garrysmod.com/page/Category:file"]Yes, he can[/URL] The wiki is your friend, read it [editline]rlly bruh[/editline] wtf dude [URL="https://facepunch.com/showthread.php?t=1539667"]your last thread isn't even a day old[/URL] Have some patience Jesus Christs. Also just bump the old thread, no need to make a new one
[QUOTE=Remixful;51282106]If you want to save any data in GMod for later use, you need to write & read data to a file or database. Some helpful links: [url]http://wiki.garrysmod.com/page/Category:file[/url] (if you want to use files) [url]http://wiki.garrysmod.com/page/Category:sql[/url] (if you want to use gmod's database)[/QUOTE] Why not use [URL="http://wiki.garrysmod.com/page/Category:cookie"]cookies[/URL] or [URL="http://wiki.garrysmod.com/page/Player/SetPData"]pdata[/URL]?
[QUOTE=Moosicorn;51282317]Why not use [URL="http://wiki.garrysmod.com/page/Category:cookie"]cookies[/URL] or [URL="http://wiki.garrysmod.com/page/Player/SetPData"]pdata[/URL]?[/QUOTE] Why would you save anything client-side? There is absolutely no reason for the client to save the warp positions. Only the server needs this info, not the player. If you're too lazy to learn how to write/read to databases or files properly, sure go for it... At the end of the day it still boils down to sql/file handling like I said. (referring to pdata, i haven't seen much about cookies yet I suppose that's fine as long as you do it server-side.)
[QUOTE=Remixful;51282342]Why would you save anything client-side? There is absolutely no reason for the client to save the warp positions. Only the server needs this info, not the player. If you're too lazy to learn how to write/read to databases or files properly, sure go for it... At the end of the day it still boils down to sql/file handling like I said. (referring to pdata, i haven't seen much about cookies yet I suppose that's fine as long as you do it server-side.)[/QUOTE] Both of those functions can (and should) be used server-side, and they both "properly" use sql
[QUOTE=JasonMan34;51282373]Both of those functions can (and should) be used server-side, and they both "properly" use sql[/QUOTE] Why would you set any player's PData in this case? These warps are for all players to use, right? Then that's the[I][B] improper[/B][/I] way to store that data.
His last thread about this is still on the first page and is not closed: [url]https://facepunch.com/showthread.php?t=1539667[/url] Can you give us your code? Because it looks like spoonfeeding.
Sorry, you need to Log In to post a reply to this thread.