Quote:
Originally Posted by TheFlyer
use strcat
pawn Код:
CMD:interiors(playerid,params[]) { if(PlayerInfo[playerid][pAdmin] >= 4) { new string[50]; strcat(string, "Your interior is %d.",GetPlayerInterior(playerid)); ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, string,"BUTTON1","BUTTON2"); } else { SendClientMessage(playerid,COLOR_GRAD1,"No authorization."); } }
|
Wont work, he's formatting an interior id in his string;
@OP:
You're missing the caption[] argument, it comes right after type (yours is DIALOG_STYLE_LIST). With your code you're missing the last button and setting the caption as the string, the info[] as "BUTTON1", and button 1 as "BUTTON2"