OnDialogResponse dont work?
#1

Is it wrong?

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {  
    if (dialogid == 1 && response || dialogid == 2 && response)
    {
    //Codes
    return 1;
    }
    else if (dialogid == 0 && !(response) || dialogid == 1 && !(response) || dialogid == 2 && !(response))
    {
    Kick(playerid);
    return 1;
    }
    else if (dialogid == 0 && response)
    {
    //Codes
    return 1;
    }
    return 0;
}
Thanks.
Reply
#2

What's wrong with it?
Reply
#3

Nothing happens.

ShowPlayerDialog working but OnDialogResponse don't work.

Sorry for my english.
Reply
#4

Well most of your code does nothing...

The only thing that would should work is if you clicked the second option instead of the first option in the box.
Reply
#5

use:
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{ 
if (response)
{ 
switch(dialogid)
{
case 0:
case 1:
case 2:
}
return 1;
}
else return Kick(playerid);
return 0;
}
Reply
#6

pawn Код:
Kick( playerid );
You are kicking yourself also.
Reply
#7

Thank you to everyone
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)