OnDialogResponse dont work? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OnDialogResponse dont work? (
/showthread.php?tid=97318)
OnDialogResponse dont work? -
erorcun - 13.09.2009
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.
Re: OnDialogResponse dont work? -
JaTochNietDan - 13.09.2009
What's wrong with it?
Re: OnDialogResponse dont work? -
erorcun - 13.09.2009
Nothing happens.
ShowPlayerDialog working but OnDialogResponse don't work.
Sorry for my english.
Re: OnDialogResponse dont work? -
JaTochNietDan - 13.09.2009
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.
Re: OnDialogResponse dont work? -
Stepashka - 13.09.2009
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;
}
Re: OnDialogResponse dont work? -
Donny_k - 13.09.2009
You are kicking yourself also.
Re: OnDialogResponse dont work? -
erorcun - 13.09.2009
Thank you to everyone