ondialogresponse - 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: ondialogresponse (
/showthread.php?tid=638631)
ondialogresponse -
Bussyman - 03.08.2017
Hi,
Код:
Returning 0 in this callback will pass the dialog to another script in case no matching code were found in your gamemode's callback.
So if i don't have filterscripts just one ondialogresponse in my gamemode, i don't need to return 0; i can return 1; ?
Re: ondialogresponse -
Storm94 - 04.08.2017
Still a good idea to return 0. Returning 1 tells the script that a dialog response was successfully handled. There is no harm in returning 0, even if you don't have any Filterscripts