What's wrong with this?
#1

When you click liste item 1 or 2 it should kick you but it doesnt o.o But the List item 0 works
Код:
if(dialogid == RP_QUIZQ1)
    {
        if(response) 
        {
            if(listitem == 0)
            {
                SendClientMessage(playerid, COLOR_YELLOW, "Correct!");
                return 1;
			}
			if(listitem == 1 && (listitem == 2))
			{
			    Kick(playerid);
			    SendClientMessage(playerid, COLOR_RED, "WRONG!");
			    return 1;
			}
		}
	}
Reply
#2

if(listitem == 1 && (listitem == 2)) according to this player should press them BOTH at the same time. You need:if(listitem == 1 || (listitem == 2))
Reply
#3

I don't know if it works the way you are trying to do.

Anyway, try this:
if(listitem == 1 || listitem == 2)


EDIT:
Too late.
Reply
#4

It worked. Thanks fellas.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)