MDC System Problem
#3

Код:
IsValidPlayerName(const str[])
{
	if (!str[0] || str[0] == '\1')
		return 0;

	for (new i = 0, l = strlen(str); i != l; i ++)
	{
	    if ((str[i] >= '0' && str[i] <= '9') || (str[i] >= 'a' && str[i] <= 'z') || (str[i] >= 'A' && str[i] <= 'Z'))
	        continue;

		if (str[i] == '_' || str[i] == '$' || str[i] == '@' || str[i] == '[' || str[i] == ']')
		    continue;

		else
		    return 0;
	}
	return 1;
}
Oops
Reply


Messages In This Thread
Number of arguments does not match definition - by Luke_James - 25.07.2015, 14:43
AW: MDC System Problem - by Macronix - 25.07.2015, 16:44
Re: MDC System Problem - by Luke_James - 25.07.2015, 17:04
AW: MDC System Problem - by Macronix - 25.07.2015, 17:24
Re: MDC System Problem - by Luke_James - 25.07.2015, 17:49
AW: MDC System Problem - by Macronix - 25.07.2015, 17:59
Re: MDC System Problem - by Luke_James - 25.07.2015, 18:01
AW: MDC System Problem - by Macronix - 25.07.2015, 18:06
Re: AW: MDC System Problem - by Luke_James - 25.07.2015, 18:19
Re: AW: MDC System Problem - by Luke_James - 25.07.2015, 18:24

Forum Jump:


Users browsing this thread: 2 Guest(s)