25.07.2015, 17:04
Код:
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; }