07.12.2018, 14:15
Quote:
Код:
// At the top of your code. #include <Pawn.Regex> new Regex:g_reNameCheck; // In OnGameModeInit (use `*` not `+` if empty strings are valid). g_reNameCheck = Regex_New("^[a-zA-Z]+$"); // Your function (not stock, why did you make it stock?) bool:OnlyLetters(const text[]) { return Regex_Check(text, g_reNameCheck); } |