A little help
#1

So i made this /stats command, and it works perfectly. But this is how it looks:
Код:
Cash: 25000$
Admin: 4
Score: 10
Permission: 1
And i want instead of number to appear [Yes or No], like this:

Код:
Cash: 25000$
Admin: Yes
Score: 10
Permission: Yes
This is my command:
Код:
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;
}
What should i add?
Reply


Messages In This Thread
A little help - by Escobabe - 01.10.2017, 20:16
Re: A little help - by whadez - 01.10.2017, 20:19
Re: A little help - by Swankeh - 01.10.2017, 20:21
Re: A little help - by Escobabe - 01.10.2017, 20:25
Re: A little help - by BreakStore - 01.10.2017, 20:43

Forum Jump:


Users browsing this thread: 2 Guest(s)