Need help with multiple fs 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: Need help with multiple fs Dialogs (
/showthread.php?tid=403648)
Need help with multiple fs Dialogs -
Smokey619 - 31.12.2012
well i have 3 filterscripts that use dialog boxes and 1 only works out of the 3. i have
a bank dialog=1 fs, a house system=1 fs, and a radio station chooser=1 fs.
how can i make all of the 3 work because the house system and bank i like, i dont really care about the radio, ill just look for one that you can type /setstation 1 for a internet radio station. how can i make them both work together even if they are 2 separate fs. thanks
Re: Need help with multiple fs Dialogs -
NicholasA - 31.12.2012
Use a streamer.
Re: Need help with multiple fs Dialogs -
Babul - 31.12.2012
open your gamemode and all filterscripts you want to use, and check their DialogResponse callback:
the gamemode callback MUST contain a return - preferably return 1; in its end...
each filterscript WITH a return in the callbacks' end, will cancel further processing when its called - remove the return 1; ( or 0; ) at the dialog in order to let the next (filter)scripts perform that callback - as long there is no return in the fitlerscripts, the chain will process until the callback in the gamemode gets called, this is where a return 1; is required.
you will notice the compiler complaining with a warning "function should return a value". < fuck that, and enjoy your 3 filterscripts working together!
Re: Need help with multiple fs Dialogs -
Smokey619 - 31.12.2012
Quote:
Originally Posted by Babul
open your gamemode and all filterscripts you want to use, and check their DialogResponse callback:
the gamemode callback MUST contain a return - preferably return 1; in its end...
each filterscript WITH a return in the callbacks' end, will cancel further processing when its called - remove the return 1; ( or 0; ) at the dialog in order to let the next (filter)scripts perform that callback - as long there is no return in the fitlerscripts, the chain will process until the callback in the gamemode gets called, this is where a return 1; is required.
you will notice the compiler complaining with a warning "function should return a value". < fuck that, and enjoy your 3 filterscripts working together!
|
damn it it was that easy, well i got everything to work. also got the 2 most important to work. the radio i did the same but it didnt play, so then i just placed the radio file name first in the server.cfg before the house and the bank and they all work now.
Thank you for your help