23.01.2011, 15:58
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.
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]));