09.06.2016, 15:51
Yes. The apostrophes are there to hold the ~ symbol inside the check function. Otherwise, script will give error. If you don't know, how to use this with your command, post your command script as said above.
Edit: The code posted above doesn't seem to work.
This one should work.
Ofc, you will have to replace the string with the one you're checking the symbol in.
Edit: The code posted above doesn't seem to work.
This one should work.
PHP код:
for (new i, j = strlen(string); i != j; i++)
{
if (string[i] == '~')
{
return SendClientMessage(playerid, -1, "Can't use in /cnn or /cnnn '~' ");
}
}