INI Bug
#1

http://i50.tinypic.com/214a0k5.png

i have been coded something (click player) and it shows me wrong stats of that player look this picture it shows 11kils and 9deaths and level 10 even that player has 0 in all of them here's the picture and the code P.S: there is no error's/warning on the script

http://i50.tinypic.com/214a0k5.png

Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{

   PlayerInfo[playerid][pLevel] = INI_ReadInt("level");
   PlayerInfo[playerid][pKills] = INI_ReadInt("kills");
   PlayerInfo[playerid][pDeaths] = INI_ReadInt("Deaths");

    INI_Close();

  new PName[MAX_PLAYER_NAME],strg [190];
 GetPlayerName(clickedplayerid, PName, sizeof (PName));
  format(strg,sizeof(strg),"{F81414} you are viewing {FFFFFF} %s stats \n {00CED1} Kills : {FFFFFF} %d \n {00CED1} Deaths : {FFFFFF} %d \n {00CED1} Level : {FFFFFF} %d  ",PName,pKills,pDeaths,pLevel);
  ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{00FF04}Player Stats",strg,"Close","Done");
  

	return 1;
}
here's player file in scriptfiles

Kills=0
Deaths=0
Level=0
Reply


Messages In This Thread
INI Bug - by AzTeCaS - 02.11.2012, 22:32
Re: INI Bug - by tyler12 - 02.11.2012, 22:53
Re: INI Bug - by AzTeCaS - 02.11.2012, 23:16
AW: INI Bug - by Skimmer - 02.11.2012, 23:19
Re: INI Bug - by AzTeCaS - 03.11.2012, 00:04
AW: INI Bug - by tyler12 - 03.11.2012, 00:14
Re: INI Bug - by Stu1 - 03.11.2012, 00:16
Re: AW: INI Bug - by admantis - 03.11.2012, 00:37
Re: AW: INI Bug - by AzTeCaS - 03.11.2012, 00:37
Re: INI Bug - by AzTeCaS - 03.11.2012, 00:39

Forum Jump:


Users browsing this thread: 1 Guest(s)