Saving help! [Edited]
#1

Problem - Saving, the cash,kills,deaths,adminlevel and VIP won't save (only if it's done through scriptfiles it saves).


Code - Click here

This is also under OnPlayerDisconnect


pawn Код:
new userfile[132];
    format(userfile, sizeof (userfile), "users/%s.ini", pname);
    new INI:file = INI_Open(userfile);
    INI_SetTag(INI:file, "data");
    INI_WriteInt(file,"Cash",GetPlayerMoney(playerid));
    INI_WriteInt(file,"Kills",PlayerInfo[playerid][pKills]);
    INI_WriteInt(file,"Deaths",PlayerInfo[playerid][pDeaths]);
    INI_WriteInt(file,"Adminlevel",PlayerInfo[playerid][pAdminlevel]);
    INI_WriteInt(file,"VIP",PlayerInfo[playerid][pVIP]);
    INI_Close(file);
Thanks in advanced.
Reply


Messages In This Thread
Saving help! [Edited] - by Yamoo - 26.09.2011, 03:02
Re : Saving help! [Edited] - by timaoux - 26.09.2011, 03:42
Re: Re : Saving help! [Edited] - by Yamoo - 26.09.2011, 04:18
Re : Saving help! [Edited] - by timaoux - 26.09.2011, 10:18
Re: Saving help! [Edited] - by Wesley221 - 26.09.2011, 11:11
Re : Saving help! [Edited] - by timaoux - 26.09.2011, 11:24
Re: Saving help! [Edited] - by Aprezt - 26.09.2011, 11:31
Re: Saving help! [Edited] - by Yamoo - 26.09.2011, 11:52

Forum Jump:


Users browsing this thread: 1 Guest(s)