for(new i; string[i]; ++i){ if(string[i] == '~'){ break; } } if(string[i] != EOS){ return SendClientMessage(playerid, COLOR_RED, "Can't use in /cnn or /cnnn '~' "); }