Y_ini Problem! [Rep+]
#1

All the stats except Password and Ip aren`t saving!

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new h, m, s;
    TotalGameTime(playerid, h, m, s);
    new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    INI_WriteInt(File,"Score",GetPlayerScore(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,"Banned",PlayerInfo[playerid][pBanned]);
    INI_WriteInt(File,"Cookies",PlayerInfo[playerid][pCookies]);
    INI_WriteInt(File,"Vip",PlayerInfo[playerid][pVip]);
    INI_WriteInt(File,"Seconds",s);
    INI_WriteInt(File,"Minutes",m);
    INI_WriteInt(File,"Hours",h);
    INI_WriteString(File, "Ip",GetPlayerIPEx(playerid));
    INI_Close(File);
    return 1;
}
Reply


Messages In This Thread
Y_ini Problem! [Rep+] - by Audi_Quattrix - 02.02.2014, 03:45
Re: Y_ini Problem! [Rep+] - by rakshith122 - 02.02.2014, 04:34
Re: Y_ini Problem! [Rep+] - by Don_Cage - 02.02.2014, 05:05
Re: Y_ini Problem! [Rep+] - by Audi_Quattrix - 02.02.2014, 08:19
Re: Y_ini Problem! [Rep+] - by Sawalha - 02.02.2014, 08:32
Re: Y_ini Problem! [Rep+] - by Audi_Quattrix - 02.02.2014, 11:06
Re: Y_ini Problem! [Rep+] - by Konstantinos - 02.02.2014, 11:10
Re: Y_ini Problem! [Rep+] - by Audi_Quattrix - 02.02.2014, 18:23

Forum Jump:


Users browsing this thread: 1 Guest(s)