28.01.2011, 10:44
Patch the dialog crash exploit! (String placeholders are filtered in SA:MP's chatbox, which is not the case in dialogs - it's been the cause of many server attacks). Insert this directly under OnDialogResponse.
Код:
if(!(inputtext[0] == 0 || (inputtext[0] == 1 && inputtext[1] == 0))) for(new strPos; inputtext[strPos] > 0; strPos++) if(inputtext[strPos] == '%') inputtext[strPos] = ' ';