08.04.2011, 12:23
Hi i have some little problem. my stats doesnt save then disconnect but then i die it saves.
Here is code
Please answer.
Here is code
Код:
public OnPlayerDisconnect(playerid, reason) { TextDrawDestroy(SPEEDOS[playerid]); TextDrawDestroy(HEALTH[playerid]); GameTextForPlayer(playerid, "_", 1000, 4); new n[MAX_PLAYER_NAME], file[256]; GetPlayerName(playerid,n,sizeof(n)); format(file,sizeof(file),"CionRP/Users/%s.txt",n); if(dini_Exists(file)) { PInfo[playerid][Logged] = 0; dini_IntSet(file,"Logged",0); dini_IntSet(file, "Skin", GetPlayerSkin(playerid)); dini_IntSet(file, "Money",GetPlayerMoney(playerid)); return 1; } return 1; }