New saving system and still not saving score/money
#1

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:
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);
Also here is the guide I followed this time: https://sampforum.blast.hk/showthread.php?tid=273088
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)