01.10.2018, 21:26
Quote:
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: Код:
if(strfind(inputtext, "%", true) != -1) { SCM(playerid, -1, "Don't use %%!"); return 1; } EDIT: hook OnDialogResponse is below the public OnDialogResponse... |
PHP код:
for(new i = 0, l = strlen(inputtext); i < l; i ++)
{
if(inputtext[i] == '%') { the rest of the code here }
}
Or you can just replace it instead of sending a client message.
PHP код:
for(new i = 0, l = strlen(inputtext); i < l; i ++)
{
if(inputtext[i] == '%') inputtext[i] = '#';
}