01.06.2018, 20:46
Check all your other filterscripts for OnDialogResponse and find the one that returns 1 always, especially when a dialog that doesn't belong to that filterscript is handled (like yours).
Start with the first filterscript listed in your server.cfg file and proceed until your own script that doesn't handle your dialogs.
To test if this is the problem: list the script as the first filterscript and check if it works then.
If it does, then one of the other scripts must have a return 1, which actually tells the server to stop processing the dialogs and skip all other scripts.
Suppose you have 4 filterscripts and of course your gamemode, the filterscripts are processed first, then the gamemode at the end.
If your first filterscript would have the above code, and you're trying to process a dialog in the 3rd filterscript, it won't be processed.
In fact, the server stops processing dialogs in this first script because it has "return 1" there.
The 2nd, 3rd and 4th filterscript and gamemode won't be processed and therefore, nothing happens when you click on anything in that dialog, which is displayed in the 3rd filterscript.
Every filterscript should have "return 0" there if no dialog was processed by that filterscript.
Another filterscript or even the gamemode then still has a chance to process that dialog.
The gamemode comes last and should return 1 there, but I think it doesn't matter what you return there, because it's the last script to be processed anyways.
Start with the first filterscript listed in your server.cfg file and proceed until your own script that doesn't handle your dialogs.
To test if this is the problem: list the script as the first filterscript and check if it works then.
If it does, then one of the other scripts must have a return 1, which actually tells the server to stop processing the dialogs and skip all other scripts.
Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { return 1; }
If your first filterscript would have the above code, and you're trying to process a dialog in the 3rd filterscript, it won't be processed.
In fact, the server stops processing dialogs in this first script because it has "return 1" there.
The 2nd, 3rd and 4th filterscript and gamemode won't be processed and therefore, nothing happens when you click on anything in that dialog, which is displayed in the 3rd filterscript.
Every filterscript should have "return 0" there if no dialog was processed by that filterscript.
Another filterscript or even the gamemode then still has a chance to process that dialog.
The gamemode comes last and should return 1 there, but I think it doesn't matter what you return there, because it's the last script to be processed anyways.