Dialogs not working properly? - 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: Dialogs not working properly? (
/showthread.php?tid=593523)
Dialogs not working properly? -
Counterafk - 06.11.2015
Alright so almost every single dialog-based filterscript I've ever tested(as far as I can remember) have not worked. Im trying to figure out what is causing this, and/or if there is something missing or w/e.
The filterscripts themselves load fine. The 'original' dialogs open however when I select & hit enter on one it just closes like somethings wrong.
This is the code of the filterscript im trying to use:
http://pastebin.com/Mv6suGpk(by Crime Life Team)
And as far as I can see, I really do not know why this wouldnt work.
Thanks in beforehand!
Re: Dialogs not working properly? -
C4SH - 06.11.2015
Make sure none of the filterscripts you're using clash IDs with eachother.
For example if you use ID 0 as the main selection dialog and you use the same ID with another dialog on a reaction, then the outcome will just clash and creates "glitches" in the script.
Re: Dialogs not working properly? -
Pottus - 06.11.2015
He probably returns 0 somewhere preventing the other scripts from getting the callback.
Re: Dialogs not working properly? -
Scottylad - 06.11.2015
Return 1; to every statement unless you want to deny the player access.