01.10.2017, 20:16
So i made this /stats command, and it works perfectly. But this is how it looks:
And i want instead of number to appear [Yes or No], like this:
This is my command:
What should i add?
Код:
Cash: 25000$ Admin: 4 Score: 10 Permission: 1
Код:
Cash: 25000$ Admin: Yes Score: 10 Permission: Yes
Код:
CMD:stats(playerid,params[]) { new string[128], stats[1024]; format(string,sizeof(string),"**- Cash: $ %d /n Score: %d /n Admin: %d /n VIP: %d /n Wanted: %d /n Permission: %d -**",PlayerInfo[playerid][pCash],PlayerInfo[playerid][pScore],PlayerInfo[playerid][pAdmin],PlayerInfo[playerid][pVIP],PlayerInfo[playerid][Wanted],PlayerInfo[playerid][pPermission]); format(stats, sizeof stats, "%s", string); ShowPlayerDialog(playerid,STATS,DIALOG_STYLE_MSGBOX,"Account Information:",stats,"Ok",""); return 1; }