OnDialogResponse problem
#5

stop using else inside the switch.

i already give you the example.

Example

pawn Код:
ShowPlayerDialog(playerid, 0, 2, "Who is my gf", "Lady Gaga\nJustin Bieber\nNicki Minaj", "Choose", "Exit");
pawn Код:
if(dialogid == 0)
{
      switch(listitem)
      {
            case 0: //lady gaga
            {
                 GameTextForPlayer(playerid, "~r~Wrong", 3000, 3);
                 Kick(playerid);
            }
            case 1: //justin bieber
            {
                 GameTextForPlayer(playerid, "~g~Correct~n~~w~He is gay!", 4500, 3);
            }            
            case 2: //Nicki Minaj
            {
                 GameTextForPlayer(playerid, "~r~Wrong", 3000, 3);
                 Kick(playerid);
            }
 
      }
}
Reply


Messages In This Thread
OnDialogResponse problem - by Noles2197 - 24.02.2013, 02:04
Re: OnDialogResponse problem - by kay420 - 24.02.2013, 02:26
Re: OnDialogResponse problem - by JaKe Elite - 24.02.2013, 02:44
Re: OnDialogResponse problem - by Noles2197 - 24.02.2013, 02:54
Re: OnDialogResponse problem - by JaKe Elite - 24.02.2013, 03:02
Re: OnDialogResponse problem - by Scenario - 24.02.2013, 03:05
Re: OnDialogResponse problem - by Noles2197 - 24.02.2013, 03:07

Forum Jump:


Users browsing this thread: 2 Guest(s)