dialogs
#9

Well, show another dialog when he responses a dialog.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 4)
    {
        switch(listitem)
        {
        case 0: // Rules
        {
            ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "Rules Part 1", "1єRule1\n2єRule2\n3єRule3", "Continue", "Cancel");
        }
        case 1: SendClientMessage(playerid, White, "Test 2");
        case 2: SendClientMessage(playerid, White, "Test 3");
        }
    }
    if(dialogid == 5)
    {
        if(response)
        {
            ShowPlayerDialog(playerid, 6, DIALOG_STYLE_MSGBOX, "Rules Part 2", "1єRule1\n2єRule2\n3єRule3", "Ok", "Back");
        }
        else if(!response)
        {
            return 1;
        }
    }
    if(dialogid == 6)
    {
        if(response)
        {
            return 1;
        }
        else if(!response)
        {
            ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "Rules Part 1", "1єRule1\n2єRule2\n3єRule3", "Continue", "Cancel");
        }
    }
    return 1;
}
Reply


Messages In This Thread
dialogs - by xir - 04.03.2011, 21:29
Re: dialogs - by Marricio - 04.03.2011, 21:33
Re: dialogs - by xir - 04.03.2011, 21:36
Re: dialogs - by Marricio - 04.03.2011, 21:38
Re: dialogs - by xir - 04.03.2011, 21:45
Re: dialogs - by Marricio - 04.03.2011, 21:48
Re: dialogs - by xir - 04.03.2011, 21:54
Re: dialogs - by xir - 04.03.2011, 22:09
Re: dialogs - by Marricio - 04.03.2011, 22:14
Re: dialogs - by xir - 04.03.2011, 22:24

Forum Jump:


Users browsing this thread: 1 Guest(s)