SA-MP Forums Archive
[Help] Saved data after GMX. - 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: [Help] Saved data after GMX. (/showthread.php?tid=488631)



[Help] Saved data after GMX. - Strain - 18.01.2014

Hey...
I have problem, when I exit from the server, everything is saved, but when I do gmx, strings, floats and some variables aren't saved. I have MySQL, but I had it on every files system... What can I do?
I tried to save data on OnGameModeExit, but nothing happend...


Re: [Help] Saved data after GMX. - Blademaster680 - 18.01.2014

You could add it on RCON Command that it will Kick everyone and make a timer until it sends GMX to the console


Re: [Help] Saved data after GMX. - Pottus - 19.01.2014

I would never recommend using gmx as always, you should actually restart your server fully to avoid bugs particularly client bugs.


Re: [Help] Saved data after GMX. - DobbysGamertag - 19.01.2014

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
I would never recommend using gmx as always, you should actually restart your server fully to avoid bugs particularly client bugs.
GMX works fine for me.

Just loop all players OnGameModeExit and Kick(); that's the way i do it, all data is saved correctly for me. If you save data OnPlayerDisconnect() it'll be called since you used Kick();