19.01.2015, 19:12
Quote:
Well, if they are correctly saved, they shouldn't appear as zero's in the messages.. So somehow they are still '0'.
Are you also sure these variables are not reset in the SavePlayer(playerid); function? |
pawn Код:
stock SavePlayer(playerid)
{
new INI:file = INI_Open(Path(playerid));
INI_SetTag(file,"Player's Data");
INI_WriteInt(file,"AdminLevel",pInfo[playerid][Adminlevel]);
INI_WriteInt(file,"VIPLevel",pInfo[playerid][VIPlevel]);
INI_WriteInt(file,"Money",GetPlayerMoney(playerid));
INI_WriteInt(file,"Scores",GetPlayerScore(playerid));
INI_WriteInt(file,"Kills",pInfo[playerid][Kills]);
INI_WriteInt(file,"Deaths",pInfo[playerid][Deaths]);
INI_WriteInt(file,"SultanMiliSeconds",pInfo[playerid][SultanMiliSeconds]);
INI_WriteInt(file,"SultanSeconds",pInfo[playerid][SultanSeconds]);
INI_WriteInt(file,"SultanMinutes",pInfo[playerid][SultanMinutes]);
INI_Close(file);
}