/interiors incident
#3

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"
Reply


Messages In This Thread
/interiors incident - by Ryan McDuff - 02.02.2014, 03:31
Re: /interiors incident - by TheFlyer - 02.02.2014, 03:35
Re: /interiors incident - by CuervO - 02.02.2014, 03:38
Re: /interiors incident - by Ryan McDuff - 02.02.2014, 03:54
Re: /interiors incident - by CuervO - 02.02.2014, 03:57
Re: /interiors incident - by Ryan McDuff - 02.02.2014, 04:15
Re: /interiors incident - by CuervO - 02.02.2014, 04:22
Re: /interiors incident - by Ryan McDuff - 02.02.2014, 04:45
Re: /interiors incident - by CuervO - 02.02.2014, 04:54
Re: /interiors incident - by Ryan McDuff - 02.02.2014, 05:00

Forum Jump:


Users browsing this thread: 1 Guest(s)