DIALOG_STYLE_LIST
#2

Should be something like this
pawn Код:
if(!strcmp(cmdtext, "/help", true, 5))
{
    ShowPlayerDialog(playerid, 50, DIALOG_STYLE_LISTITEM, "Text above dialog", "Commands(case0) \nTeles(case1) \nRules(case2) \nCredits(case3)", "Ok", "Cancel");
    return 1;
}

if(dialogid == 50 && response == 1)
{
    switch(listitem)
    {
        case 0: ShowPlayerDialog(playerid, 51, DIALOG_STYLE_MSGBOX, "Text above dialog", "Command 1 \nCommand 2 \nCommand 3", "Ok", "Cancel");
        case 1: ShowPlayerDialog(playerid, 52, DIALOG_STYLE_MSGBOX, "Text above dialog", "Tele 1 \nTele 2 \nTele 3", "Ok", "Cancel");
        case 2: ShowPlayerDialog(playerid, 52, DIALOG_STYLE_MSGBOX, "Text above dialog", "Rule 1 \nRule 2 \nRule 3", "Ok", "Cancel");
        case 3: ShowPlayerDialog(playerid, 52, DIALOG_STYLE_MSGBOX, "Text above dialog", "Credit 1 \nCredit 2 \nCredit 3", "Ok", "Cancel");
    }
    return 1;
}
Reply


Messages In This Thread
DIALOG_STYLE_LIST - by ...:Lucian:... - 06.06.2011, 09:42
Re: DIALOG_STYLE_LIST - by Wesley221 - 06.06.2011, 09:52
Re: DIALOG_STYLE_LIST - by ...:Lucian:... - 06.06.2011, 10:12
Re: DIALOG_STYLE_LIST - by Wesley221 - 06.06.2011, 11:35
Re: DIALOG_STYLE_LIST - by Vero - 06.06.2011, 11:47

Forum Jump:


Users browsing this thread: 3 Guest(s)