Detecting a character in a players name
#4

pawn Код:
stock IsValidName(name[])
{
    if(strlen(name) < 3) return 0;
    new i, ch;
    while ((ch = name[i++]) && ((ch == '(') || (ch == ')') || (ch == '$') || (ch == '.') || (ch == '=') || (ch == '@') || (ch == ']') || (ch == '[') || (ch == '_') || ('0' <= ch <= '9') || ((ch |= 0x20) && ('a' <= ch <= 'z')))) {}
    return !ch;
}
Reply


Messages In This Thread
Detecting a character in a players name - by LiamM - 17.01.2012, 16:15
Re: Detecting a character in a players name - by T0pAz - 17.01.2012, 16:19
Re: Detecting a character in a players name - by LiamM - 17.01.2012, 16:20
Re: Detecting a character in a players name - by MP2 - 17.01.2012, 16:21
Re: Detecting a character in a players name - by LiamM - 18.01.2012, 16:05

Forum Jump:


Users browsing this thread: 1 Guest(s)