26.09.2011, 11:11
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");
Edit:
Dini sucks compared to y_ini, well actually for everything else