OnDialogResponse does not get called at all in a filterscript! - 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 does not get called at all in a filterscript! (
/showthread.php?tid=368977)
OnDialogResponse does not get called at all in a filterscript! -
TheBetaFox - 15.08.2012
Hello!
I was working on a small filterscript and I have tested it countless times - the problem is that OnDialogResponse is not called at all, rendering it useless.
I tried messing with the returned values of OnDialogResponse, but to no avail. I have placed debug prints everywhere in OnDialogResponse, but each time I entered a dialog - any listitem I'd choose, any response I'd give - OnDialogResponse is not called at all.
What may cause this problem? I've noticed others have had this problem as well, but I've seen no proper answer.
Re: OnDialogResponse does not get called at all in a filterscript! -
CROSS_Hunter - 15.08.2012
check your other filterscripts and check OnDialogResponse has a return value of 0
Re: OnDialogResponse does not get called at all in a filterscript! -
TheBetaFox - 15.08.2012
I've tested this on a blank server, with no other filterscripts. Gamemode is blank, does not contain OnDialogResponse. Like I said, I've messed around with the return value of OnDialogResponse in the filterscript, but to no avail.
Re: OnDialogResponse does not get called at all in a filterscript! -
CROSS_Hunter - 15.08.2012
show me the code
Re: OnDialogResponse does not get called at all in a filterscript! -
TheBetaFox - 15.08.2012
Quick note: My 'blank gamemode' only included OnGameModeInit and OnGameModeExit, but now I've reduced it to this:
pawn Код:
#include <a_samp>
main() {}
And now the filterscript works... strange.
Re: OnDialogResponse does not get called at all in a filterscript! -
CROSS_Hunter - 15.08.2012
it worked now?
Re: OnDialogResponse does not get called at all in a filterscript! -
playbox12 - 15.08.2012
Probably because you had OnDialogResponse in your gamemode where it returned 1.
EDIT. My bad didn't read your second post.