08.08.2012, 11:17
This command puts '0' in all places of the numbers in the dialog.
Any help please?
pawn Код:
CMD:stats(playerid,params[])
{
new kills = pInfo[playerid][Kills],deaths = pInfo[playerid][Deaths],alevel = pInfo[playerid][Adminlevel],vlevel = pInfo[playerid][VIPlevel],score = pInfo[playerid][Scores],cash = pInfo[playerid][Money],string1[124],string2[500];
format(string1,sizeof(string1),"%s stats",GetName(playerid));
format(string2,sizeof(string2),"Kills: %d \t\t\t\t\tDeaths: %d\nAdmin level: %d \t\t\tVIP level: %d\nMoney: $%d \t\t\t\tScore: %d",kills,deaths,alevel,vlevel,score,cash);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,string1,string2,"Close","");
return 1;
}
![Wink](images/smilies/wink.png)