24.02.2013, 03:02
stop using else inside the switch.
i already give you the example.
Example
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);
}
}
}