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

Quote:
Originally Posted by jaami
Посмотреть сообщение
Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(INI_Open(getINI(playerid))) {
    
    INI_WriteInt("Score",GetPlayerScore(playerid));
    INI_WriteInt("Cash",GetPlayerMoney(playerid));
    INI_WriteInt("Admin",PlayerInfo[playerid][pAdmin]);
    INI_WriteInt("Pass",PlayerInfo[playerid][pPass]);
    INI_WriteInt("Kills",PlayerInfo[playerid][pKills]);
    INI_WriteInt("Deaths",PlayerInfo[playerid][pDeaths]);

    INI_Save();
    INI_Close();
    }
    return 1;
}
Put this code under OnPlayerDisconnect
Didn't work
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)