SA-MP Forums Archive
Not working dialogs! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Not working dialogs! (/showthread.php?tid=352963)



Not working dialogs! - x96664 - 21.06.2012

Hi everybody reading this thread!
So, I have problem with the dialogs in my server (0.3e)- when I open menu dialog and click on any item in the menu it just closes the dialog and nothing more.. I've checked the dialogids and no one wasn't same (I mean there weren't id conflicts) can somebody help me ?


Re: Not working dialogs! - newbienoob - 21.06.2012

There must be a problem in your OnDialogResponse.


Re: Not working dialogs! - x96664 - 21.06.2012

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
There must be a problem in your OnDialogResponse.
But there isn't I set everything on OnDialogResponse in comment and everything is same .. the filterscripts are not working too ..


Re: Not working dialogs! - WackoX - 21.06.2012

Make sure you have "return 0;" at the end of OnDialogResponse, because 1 will make it prevent running through other scripts.


Re: Not working dialogs! - x96664 - 21.06.2012

I've found something strange, the filterscript which is first in a row in the server.cfg in it the dialogs are working ..


Re: Not working dialogs! - [A]ndrei - 21.06.2012

the Admin system should always be first...


Re: Not working dialogs! - WackoX - 21.06.2012

Quote:
Originally Posted by x96664
Посмотреть сообщение
I've found something strange, the filterscript which is first in a row in the server.cfg in it the dialogs are working ..
Look what i posted.

Quote:
Originally Posted by WackoX
Посмотреть сообщение
Make sure you have "return 0;" at the end of OnDialogResponse, because 1 will make it prevent running through other scripts.



Re: Not working dialogs! - x96664 - 21.06.2012

Quote:
Originally Posted by WackoX
Посмотреть сообщение
Make sure you have "return 0;" at the end of OnDialogResponse, because 1 will make it prevent running through other scripts.
Yes, that was the problem,when I fixed that in the gamemode the dialogs from filterscripts were not working but I found that in the one of the fs's it was "return 1;" too. Thank you, for the help!