SA-MP Forums Archive
OnDialogResponse - 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)
+--- Thread: OnDialogResponse (/showthread.php?tid=654274)



OnDialogResponse - 3417512908 - 25.05.2018

All right.I use dialog on my filterscript.But when I press dialog button.It is not response...
(I`m used return 0; on public OnDialogResponse(playerid),but it is still not working)


Re: OnDialogResponse - 3417512908 - 25.05.2018

anyone?


Re: OnDialogResponse - jlalt - 25.05.2018

You should do the return 0 under OnDialogResposne not under OnPlayerUpdate....


Re: OnDialogResponse - 3417512908 - 25.05.2018

Quote:
Originally Posted by jlalt
Посмотреть сообщение
You should do the return 0 under OnDialogResposne not under OnPlayerUpdate....
sorry it is i Inadvertent input error. Corrected. should is OnDialogResposne
I used return 0;


Re: OnDialogResponse - GeorgeMcReary - 25.05.2018

probably wrong dialog ID? does DialogResponse gets called? do a little debugging. Use print or printf to display a message on console when that function gets called. If theres nothing on console, you know what it means.


Re: OnDialogResponse - Banana_Ghost - 26.05.2018

Make sure you return 0 under OnDialogResponse in your filterscript and in the gamemode. Return 1 when the correct dialog is responded to so that the server knows the correct dialog was responded to and will stop searching scripts.