Annoyi'n dialogs
#1

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

Wrong topic.
Reply
#3

So, guys ? Any solutions ?
Reply
#4

Can you show us your Dialogs defines?

such as : #define DIALOG_REGISTER 100
Reply
#5

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)