05.07.2013, 00:52
can you show your first variable like
edit: use this
pawn Код:
enum PInfo
{
Bla2,
Bla
}
pawn Код:
CMD:stats(playerid,params[])
{
new Admin = PlayerInfo[playerid][pAdmin];
new Cash = PlayerInfo[playerid][pCash];
new Score = GetPlayerScore(playerid);
new Kills = PlayerInfo[playerid][pKills];
new Deaths = PlayerInfo[playerid][pDeaths];
new str[128];
format(str,sizeof(str),"{00FF22}Cash: %d\nAdmin: %d\n{00FF22}Score: %d\n{00FF22}Kills: %d\n{00FF22}Deaths: %d",Cash,Admin,Score,Kills,Deaths);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Your Account",str,"OK","");
return 1;
}