OnDialogResponse does not get called at all in a filterscript!
#1

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.
Reply
#2

check your other filterscripts and check OnDialogResponse has a return value of 0
Reply
#3

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.
Reply
#4

show me the code
Reply
#5

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.
Reply
#6

it worked now?
Reply
#7

Probably because you had OnDialogResponse in your gamemode where it returned 1.

EDIT. My bad didn't read your second post.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)