Saving help! [Edited]
#5

pawn Код:
new userfile[132];
    format(userfile, sizeof (userfile), "users/%s.ini", pname);
print("1");
    new INI:file = INI_Open(userfile);
print("2");
    INI_SetTag(INI:file, "data");
print("3");
    INI_WriteInt(file,"Cash",GetPlayerMoney(playerid));
print("4");
    INI_WriteInt(file,"Kills",PlayerInfo[playerid][pKills]);
print("5");
    INI_WriteInt(file,"Deaths",PlayerInfo[playerid][pDeaths]);
print("6");
    INI_WriteInt(file,"Adminlevel",PlayerInfo[playerid][pAdminlevel]);
print("7");
    INI_WriteInt(file,"VIP",PlayerInfo[playerid][pVIP]);
print("8");
    INI_Close(file);
print("9");
Check where it stops, and post that here; if it prints them all check the file if it actually creates a line 'VIP' in the file.

Edit:
Quote:
Originally Posted by timaoux
Посмотреть сообщение
use dini its better for save the users info
Dini sucks compared to y_ini, well actually for everything else
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)