26.09.2011, 03:02
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
Thanks in advanced.
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);