Accounts do not want to be saved! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Accounts do not want to be saved! (
/showthread.php?tid=267569)
Accounts do not want to be saved! -
Nexotronix - 09.07.2011
Account saving only in this cases:
disconnect /q or another reason like ban, kick, time out, disconnect!
when server off (closing samp-server or /rcon exit)
but when server restarts or i'm typing /rcon gmx, they do not want to be saved, or key going down to "0"!
And btw i'm using mxINI...cause y_ini maby too hard in use =)
Re: Accounts do not want to be saved! -
SchurmanCQC - 09.07.2011
This is normal, because when your server restarts, the server doesn't respond to the restarts. It's like, how do you know you're dead when you're dead?
Re: Accounts do not want to be saved! -
dowster - 09.07.2011
My guess is you use OnPlayerDisconnect to call your saving function correct?
If that is true then also make a function that is called in OnGameModeExit that loops through 0-500 (player ids) that calls the function that saves the players, this way when the server restarts it will save these because OnGameModeExit is called but not OnPlayerDisconnect.
Re: Accounts do not want to be saved! -
Nexotronix - 09.07.2011
i did it all, but players accounts keys and vars going to "0"