30.09.2018, 14:49
So, all my gamemode (75%) is modular, every system (almost every system) has his include.
The problem is with hook.
I have a report system (/report - > then I show a dialog and then he need to select 'Report with message')
Then when he write '%s' in the dialog, the server crash (I know i can do that:
but I already have that in public OnDialogResponse, should I put that code before all OnDialogResponse that i hooked??
EDIT: hook OnDialogResponse is below the public OnDialogResponse...
The problem is with hook.
I have a report system (/report - > then I show a dialog and then he need to select 'Report with message')
Then when he write '%s' in the dialog, the server crash (I know i can do that:
Код:
if(strfind(inputtext, "%", true) != -1) { SCM(playerid, -1, "Don't use %%!"); return 1; }
EDIT: hook OnDialogResponse is below the public OnDialogResponse...