Save player health on log off?
#1

Well, I want it that when a player logs off, his health and armor will be saved in his userfile.
I tried making it but when I check it in a file, it says that health and armor are 1.

This is the code I use on savestats(playerid) callback.

pawn Код:
djSetInt(file, "player/health",GetPlayerHealth(playerid,Float:PlayerInfo[playerid][Health]));
Reply


Messages In This Thread
Save player health on log off? - by Outcast - 23.01.2011, 15:58
Re: Save player health on log off? - by Mike Garber - 23.01.2011, 15:59
Re: Save player health on log off? - by Outcast - 23.01.2011, 16:03

Forum Jump:


Users browsing this thread: 1 Guest(s)