Annoyi'n dialogs - 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: Annoyi'n dialogs (
/showthread.php?tid=471463)
Annoyin' dialogs -
x96664 - 23.10.2013
Hi guys, I had exactly the same problem an year ago, and now I'm facing it again. The dialogs used in the gamemode work properly, but if I want to use a filterscript with dialogs I have to put it first in the filterscripts line in the server.cfg, if I don't do it the dialogs show up and if I click on any item they close without any response. Any ideas how to fix that ? The previous time I had this issue I just used to return 0 instead 1 at the
OnDialogResponse callback.
I tried it now, for all of the scripts and it doesn't work. Also if I set all of 'em to return 1 it doesn't work too.
Re: Annoyi'n dialogs -
x96664 - 23.10.2013
Wrong topic.
Re: Annoyi'n dialogs -
x96664 - 24.10.2013
So, guys ? Any solutions ?
Re: Annoyi'n dialogs -
RowdyrideR - 24.10.2013
Can you show us your Dialogs defines?
such as : #define DIALOG_REGISTER 100
Re: Annoyi'n dialogs -
Pottus - 24.10.2013
Returns Returning 0 in this callback will pass the dialog to another script in case no matching code were found in your gamemode's callback.
https://sampwiki.blast.hk/wiki/OnDialogResponse
I would recommend using y_dialogs/y_inline in the future
Re: Annoyi'n dialogs -
x96664 - 24.10.2013
Quote:
Originally Posted by RowdyrideR
Can you show us your Dialogs defines?
such as : #define DIALOG_REGISTER 100
|
The problem isn't ID conflict so I will do what Pottus said.
Re: Annoyi'n dialogs -
Pottus - 24.10.2013
You'll benefit significantly if you use y_inline/y_dialog it's such a powerful dialog method because your dialog code is written right into your functions. Yes there is a slight learning curve to wrap your head around how to use it effectively but it's far superior than any method in every way.