Possible to use multiple DIALOG_STYLE_INPUT
#5

Quote:
Originally Posted by Matthewaj
Посмотреть сообщение
Thanks funky,but I also need something else. How can I get the different input texts from the different input dialogs?
Because you can't show more than one dialog at a time, you'd have to "queue" them. For example: (Sorry, I'm very script based when it comes to examples).

pawn Код:
#define DIALOG_ONE      (0001)
#define DIALOG_TWO      (0002)
#define DIALOG_THREE    (0003)

ShowPlayerDialog(playerid, DIALOG_ONE, ...);

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case DIALOG_ONE:
        {
            //Handle all your stuff for DIALOG_ONE
            ShowPlayerDialog(playerid, DIALOG_TWO, ...);
        }
        case DIALOG_TWO:
        {
            //Handle all your stuff for DIALOG_TWO
            ShowPlayerDialog(playerid, DIALOG_THREE, ...);
        }
        case DIALOG_THREE:
        {
            //Handle all your stuff for DIALOG_THREE
            //and so and on
        }
    }
    return 1;
}
Reply


Messages In This Thread
Possible to use multiple DIALOG_STYLE_INPUT - by Matthewaj - 13.04.2012, 00:37
Re: Possible to use multiple DIALOG_STYLE_INPUT - by ReneG - 13.04.2012, 01:00
Re: Possible to use multiple DIALOG_STYLE_INPUT - by Ash. - 13.04.2012, 01:00
Re: Possible to use multiple DIALOG_STYLE_INPUT - by Matthewaj - 13.04.2012, 01:17
Re: Possible to use multiple DIALOG_STYLE_INPUT - by Ash. - 13.04.2012, 01:23
Re: Possible to use multiple DIALOG_STYLE_INPUT - by Matthewaj - 13.04.2012, 01:35
Re: Possible to use multiple DIALOG_STYLE_INPUT - by Ash. - 13.04.2012, 01:58
Re: Possible to use multiple DIALOG_STYLE_INPUT - by Matthewaj - 13.04.2012, 03:23

Forum Jump:


Users browsing this thread: 1 Guest(s)