~URGENT~ Score saving is not working Rep++
#2

pawn Код:
PInfo[playerid][Score] = INI_ReadInt("Money"); // Setting the score of player
Fail - Saving score instead of money
pawn Код:
public UserDataLoad_data(playerid,name[],value[]) {
    INI_Int("Money",PInfo[playerid][Money]);
    INI_Int("Score",PInfo[playerid][Score]);
    INI_Int("Level",PInfo[playerid][Level]);
    return 1;
}
Fail - SII doesn't uses INI_Int .. its for y_ini

As per viewing your codes.. i can't see PInfo[playerid][Score] is getting the score.
So
Try to create a var like mine
pawn Код:
stock SavePlayer(playerid)
{
   new file[256];
   new scores = GetPlayerScore(playerid);
   new money = GetPlayerMoney(playerid);
   format(file, sizeof(file),"AVC/Users/%s.ini",PlayerName2(playerid));
   INI_Open(file);
   INI_WriteInt("Scores",scores);
   INI_WriteInt("Level",PlayerInfo[playerid][pLevel]);
   INI_WriteInt("Helper",PlayerInfo[playerid][pHelper]);
   INI_WriteInt("Money",money);
   INI_WriteInt("Kills",PlayerInfo[playerid][pKills]);
   INI_WriteInt("Deaths",PlayerInfo[playerid][pDeaths]);
   SendClientMessage(playerid, LIGHTGREEN,"Stats Saved.");
   return 1;
}
Take help from my code it will help you.
Reply


Messages In This Thread
~URGENT~ Score saving is not working Rep++ - by Biess - 24.09.2012, 17:30
Re: ~URGENT~ Score saving is not working Rep++ - by Jarnu - 24.09.2012, 17:35
Re: ~URGENT~ Score saving is not working Rep++ - by Biess - 24.09.2012, 17:40
Re: ~URGENT~ Score saving is not working Rep++ - by Jarnu - 24.09.2012, 17:44
Re: ~URGENT~ Score saving is not working Rep++ - by Biess - 24.09.2012, 17:46
Re: ~URGENT~ Score saving is not working Rep++ - by Jarnu - 24.09.2012, 17:48
Re: ~URGENT~ Score saving is not working Rep++ - by Biess - 24.09.2012, 17:51
Re: ~URGENT~ Score saving is not working Rep++ - by Jarnu - 24.09.2012, 17:56
Re: ~URGENT~ Score saving is not working Rep++ - by Biess - 24.09.2012, 17:57
Re: ~URGENT~ Score saving is not working Rep++ - by Jarnu - 24.09.2012, 17:58

Forum Jump:


Users browsing this thread: 2 Guest(s)