13.12.2013, 05:36
Filterscripts should ALWAYS have "return 0;" at the end of OnDialogResponse.
Why?
The filterscripts are executed in the order you state in the server.cfg file.
At the end, your gamemode is processed.
If your first filterscript has "return 1;" in that callback, the server thinks you want to end the responses on dialogs there, so it won't process the other filterscripts for OnDialogResponse.
Having "return 0;" in the first filterscript in OnDialogResponse, actually means the proper dialog-id wasn't found there and the server should continu to search for the proper dialog-id in the next filterscript.
Why?
The filterscripts are executed in the order you state in the server.cfg file.
At the end, your gamemode is processed.
If your first filterscript has "return 1;" in that callback, the server thinks you want to end the responses on dialogs there, so it won't process the other filterscripts for OnDialogResponse.
Having "return 0;" in the first filterscript in OnDialogResponse, actually means the proper dialog-id wasn't found there and the server should continu to search for the proper dialog-id in the next filterscript.