Problem "~"
#6

Quote:
Originally Posted by Ugaustin
Посмотреть сообщение
but only ~ without ' ' yes?
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.
PHP код:
for (new istrlen(string); != ji++)
{
    if (
string[i] == '~')
    {
        return 
SendClientMessage(playerid, -1"Can't use in /cnn or /cnnn '~' ");
    }

Ofc, you will have to replace the string with the one you're checking the symbol in.
Reply


Messages In This Thread
Problem "~" - by Ugaustin - 09.06.2016, 13:23
Re: Problem "~" - by zSuYaNw - 09.06.2016, 13:43
Re: Problem "~" - by Ugaustin - 09.06.2016, 14:02
Re: Problem "~" - by zSuYaNw - 09.06.2016, 14:06
Re: Problem "~" - by Ugaustin - 09.06.2016, 15:33
Re: Problem "~" - by Sjn - 09.06.2016, 15:51
Re: Problem "~" - by Gammix - 09.06.2016, 15:59

Forum Jump:


Users browsing this thread: 3 Guest(s)