SA-MP Forums Archive
Dialog IDs - 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: Dialog IDs (/showthread.php?tid=426298)



Dialog IDs - MP2 - 28.03.2013

Not sure what to title this.

I have two scripts; a gamemode and a filterscript.
I show a dialog in the GM - dialog ID 9 - both scripts call OnDialogResponse with dialogid 9.
I show a dialog in the FS with ID 999 - the GM calls OnDialogResponse with dialog id 9 again, but the FS calls it correctly with ID 999.
If I just (after a restart) show the FS dialog, the GM reports dialog ID as -1 and the FS 999.
Also, returning 1 in the FS callback doesn't stop the GM callback being called. I assumed it would, as with OnPlayer(Command)Text but no.

I am using YSI, but haven't explicitly included y_dialog, and including it in both didn't resolve the issue.

Any help is appreciated.


Re: Dialog IDs - Jeffry - 28.03.2013

Quote:
Originally Posted by MP2
Посмотреть сообщение
Also, returning 1 in the FS callback doesn't stop the GM callback being called. I assumed it would, as with OnPlayer(Command)Text but no.
return 0 should stop it, not return 1.

And again, have you tried it without including the Y_ library? If yes, what's the result there?


Re: Dialog IDs - MP2 - 28.03.2013

I tried returning 0 and 1. No difference.

Ad I said, I don't explicitly include y_dialog. I will do further testing later.


EDIT:

Okay, I've narrowed it down to fixes.inc. Contacting ******.


Re: Dialog IDs - MP2 - 29.03.2013

Fixed by including fixes.inc in the filterscript.

Quote:
Originally Posted by ******
Try add fixes.inc in your filterscript too - it is designed to work with multiple scripts.