Multiple Dialog
#3

Quote:
Originally Posted by Wolfe
Посмотреть сообщение
Read this, and you have your error.

You need to follow switch statements up with case

so like this;



Each case represents your dialogid so you can replace case 0: with the dialog name case DIALOG_WHATEVER:

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case 24:
        {
            // Dialog stuff here
        }
    }
    return 1;
}
EDIT: Forgot to put in the first post that you're doing a switch statement then using the if(dialogid == dialogid way. You won't need the switch statement, because you would be switching through nothing. So if you wanted you could just knock off the switch statement, and it'd work fine.
I'm doing a multiple dialog. seems like it a single dialog
Reply


Messages In This Thread
Multiple Dialog - by DerickClark - 07.02.2017, 03:43
Re: Multiple Dialog - by Wolfe - 07.02.2017, 03:56
Re: Multiple Dialog - by DerickClark - 07.02.2017, 04:01
Re: Multiple Dialog - by Twistedz - 07.02.2017, 04:02
Re: Multiple Dialog - by DerickClark - 07.02.2017, 04:03
Re: Multiple Dialog - by Wolfe - 07.02.2017, 04:05
Re: Multiple Dialog - by DerickClark - 07.02.2017, 04:07
Re: Multiple Dialog - by Twistedz - 07.02.2017, 04:09
Re: Multiple Dialog - by DerickClark - 07.02.2017, 04:11
Re: Multiple Dialog - by Wolfe - 07.02.2017, 04:11

Forum Jump:


Users browsing this thread: 1 Guest(s)