26.05.2012, 09:56
(
Последний раз редактировалось Karl[NDZ]; 26.05.2012 в 13:05.
)
I tried to make a new saving system but it still aint saving the money or score. Im pretty sure it have something to do on OnPlayerDisconnect because it dosen't save the score or money so here is the code for OnPlayerDisconnect:
Also here is the guide I followed this time: https://sampforum.blast.hk/showthread.php?tid=273088
pawn Код:
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
INI_WriteInt(File,"Score",PlayerInfo[playerid][pScore]);
INI_WriteInt(File,"Muted",PlayerInfo[playerid][pMuted]);
INI_Close(File);