How to make a check for not-allowed symbols?
#4

You could do a loop...
pawn Код:
for(new i = 0; i < new_name_string_length; i++)
{
    switch(new_name_string[i])
    {
        case '&', '$', '@', '^': return SendClientMessage(playerid, 0xFF0000FF, "Invalid characters!");
        default: continue;
    }
}
//Here goes your code to change the nick
Reply


Messages In This Thread
How to make a check for not-allowed symbols? - by HB - 29.03.2009, 12:28
Re: How to make a check for not-allowed symbols? - by bogeymanEST - 29.03.2009, 13:01
Re: How to make a check for not-allowed symbols? - by HB - 29.03.2009, 13:04
Re: How to make a check for not-allowed symbols? - by bogeymanEST - 29.03.2009, 13:11
Re: How to make a check for not-allowed symbols? - by HB - 29.03.2009, 13:35
Re: How to make a check for not-allowed symbols? - by PawnNewCommer - 22.07.2009, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)