SA-MP Forums Archive
levels re-sets after restart.? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: levels re-sets after restart.? (/showthread.php?tid=264109)



levels re-sets after restart.? - Mikkel_RE - 24.06.2011

Hello, im working on a server, but it has a bug.. When the server restarts it resets all score levels, do anyone know how to fix that bug?


Re: levels re-sets after restart.? - Chicken0895 - 25.06.2011

Quote:
Originally Posted by Mikkel_RE
Посмотреть сообщение
Hello, im working on a server, but it has a bug.. When the server restarts it resets all score levels, do anyone know how to fix that bug?
I only know basic scripting, but I can tell you that we can't help you until you give us the script or game-mode which keeps track of the levels.


Re: levels re-sets after restart.? - mtywe - 25.06.2011

your server is not saving the data to a file whether it be a mysql database or a .ini file. that is probably your problem but we wont know until we see some code


Re: levels re-sets after restart.? - alpha500delta - 25.06.2011

Well, when a server restarts, the last data is not saved. The only fix for this is to make a custom /gmx where it saves the players data and THEN restarts.

If that's not the problem, try an other saving system.