OnDialogResponse responds to everything
#2

It seems like under DIALOG_REGISTER you are trying to use OnDialogReponse as a variable, not a bool.

Proper usage to check for a response is:

pawn Код:
if(response == true) // can also use if(response)
OR

pawn Код:
if(response == false) // can also use if(!response)
It's also best to use a switch statement for the list items. So for example:

pawn Код:
case DIALOG_DEFINE:
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0: // same effect as if(listitem == 0)
                    case 1: // same effect as if(listitem == 1)
                    case 2: // same effect as if(listitem == 2)
                    case 3: // same effect as if(listitem == 3)
                }
            }
        }
You can do the same with the dialog ID's, as well.
Reply


Messages In This Thread
OnDialogResponse responds to everything - by dusk - 28.01.2013, 19:03
Re: OnDialogResponse responds to everything - by Scenario - 28.01.2013, 19:10
Re: OnDialogResponse responds to everything - by Bakr - 28.01.2013, 19:57
Re: OnDialogResponse responds to everything - by dusk - 29.01.2013, 07:18
Re: OnDialogResponse responds to everything - by SilverKiller - 29.01.2013, 07:22
Re: OnDialogResponse responds to everything - by dusk - 29.01.2013, 07:26
Re: OnDialogResponse responds to everything - by SilverKiller - 29.01.2013, 07:29
Re: OnDialogResponse responds to everything - by dusk - 29.01.2013, 07:34
Re: OnDialogResponse responds to everything - by SilverKiller - 29.01.2013, 07:35
Re: OnDialogResponse responds to everything - by YesYesYes - 29.01.2013, 07:41

Forum Jump:


Users browsing this thread: 1 Guest(s)