17.03.2010, 20:23
I have worked hard but still dont understand this -
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
Код:
if(IsLogged[playerid] == 1) { dini_IntSet(str, "PlayerLevel", GetPlayerScore(playerid)); dini_IntSet(str, "Cash", GetPlayerMoney(playerid)); }
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