Quote:
Originally Posted by adri1
It will crash if you format a string with inputtext (and contains '%') and use SendClientMessage.
Fix:
Код:
//top OnDialogResponse
if(!isnull(inputtext))
{
for(new i, j = strlen(inputtext); i <= j; i++)
{
if(inputtext[i] == '%') inputtext[i] = '#';
}
}
|
"i <= j" should be "i < j"