SA-MP Forums Archive
mySQL - Tag system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: mySQL - Tag system (/showthread.php?tid=647445)



mySQL - Tag system - Oshery - 05.01.2018

I made a tag system, in the admin list you will be able to edit admins tag (will be saved in SQL database)
but whenever I restart the server the whole tags lost and i want it to be saved.
when player disconnect then rejoins the game he still has the same tag but if the server restarts then the tag will be gone.
Should I make a code to save it on public OnGameModeInit?


Re: mySQL - Tag system - jasperschellekens - 05.01.2018

Code or no effort will be afforded, read the "Before you post" threads before you post.


Re: mySQL - Tag system - Oshery - 05.01.2018

That's the problem I don't know which code should I give you lel


Re: mySQL - Tag system - GangstaSunny. - 05.01.2018

Make a command to restart the server.
1. enter command
2. create timer
3. save everything
4. restart it

or better way - also for later usage of "just for fun" - create a /save-all command


Re: mySQL - Tag system - Dayrion - 05.01.2018

Quote:
Originally Posted by GangstaSunny.
Посмотреть сообщение
Make a command to restart the server.
1. enter command
2. create timer
3. save everything
4. restart it

or better way - also for later usage of "just for fun" - create a /save-all command
it isn't needed. Just save things when it changes.