pInfo problem (small one +rep)
#4

pawn Код:
enum pInfo
{
    pPass,
    pCash,
    pAdmin,
    pKills,
    pDeaths
}
new PlayerInfo[MAX_PLAYERS][pInfo];
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    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_Close(File);
    return 1;
}
Compiled and tested, I just copied and pasted from my script :3
Reply


Messages In This Thread
pInfo problem (small one +rep) - by Twinklies - 15.09.2012, 15:55
Re: pInfo problem (small one +rep) - by RLGaming - 15.09.2012, 15:57
Re: pInfo problem (small one +rep) - by Twinklies - 15.09.2012, 15:58
Re: pInfo problem (small one +rep) - by Cxnnor - 15.09.2012, 16:00
Re: pInfo problem (small one +rep) - by RLGaming - 15.09.2012, 16:01
Re: pInfo problem (small one +rep) - by Sig Hansen - 15.09.2012, 16:01
Re: pInfo problem (small one +rep) - by gtakillerIV - 15.09.2012, 16:25
Re: pInfo problem (small one +rep) - by Lordzy - 15.09.2012, 16:29
Re: pInfo problem (small one +rep) - by gtakillerIV - 15.09.2012, 16:32

Forum Jump:


Users browsing this thread: 1 Guest(s)