Dini saveing.. - 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: Dini saveing.. (
/showthread.php?tid=134845)
Dini saveing.. -
GaGlets(R) - 17.03.2010
I have worked hard but still dont understand this -
Код:
if(IsLogged[playerid] == 1) {
dini_IntSet(str, "PlayerLevel", GetPlayerScore(playerid));
dini_IntSet(str, "Cash", GetPlayerMoney(playerid));
}
This code need to save player stats after disconnecting, but it wont..
I have this same code puted in OnPlayerSpawns and it works perfectly..
But i still want to save stats after, before disconnecting every time..
Just cant understand..
I have builded similar code to another dini login/register script and it does that as well (Saving after disconnect)
HELP