06.06.2011, 09:52
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;
}