03.08.2015, 23:11
Hey.
Simple code, loading works properly but there is problem with saving. After player disconnect value is not changing in file. Added print bottom that which is showing in console fine aswell. What is wrong?
OnPlayerDisconnect
Simple code, loading works properly but there is problem with saving. After player disconnect value is not changing in file. Added print bottom that which is showing in console fine aswell. What is wrong?
OnPlayerDisconnect
Код:
new file[64]; GetPlayerName(playerid,file,sizeof(file)); format(file,sizeof(file),DOF2_File(file)); DOF2_SetInt(file, "Kills",PlayerInfo[playerid][pKills]); DOF2_SetInt(file, "Deaths",PlayerInfo[playerid][pDeaths]); DOF2_SetInt(file, "Money",PlayerInfo[playerid][pMoney]); DOF2_SetInt(file, "Bank",PlayerInfo[playerid][pBank]); DOF2_SetInt(file, "AdminLevel",PlayerInfo[playerid][pAdmin]); DOF2_SetInt(file, "VIP",PlayerInfo[playerid][pVIP]); DOF2_SetInt(file, "Job",PlayerInfo[playerid][pJob]); DOF2_SetInt(file, "Skin",PlayerInfo[playerid][pSkin]);