Need help with multiple fs Dialogs
#1

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

Use a streamer.
Reply
#3

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!
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)