02.11.2012, 22:32
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
here's player file in scriptfiles
Kills=0
Deaths=0
Level=0
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;
}
Kills=0
Deaths=0
Level=0


