only letters
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
Код:
// 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);
}
I don't want to check the player's name. I want to check in my gang system if there are only letters. I don't want gangs with names like: Gr0ve Street Fam1l1es or "12541265zdwas" gang
Reply


Messages In This Thread
only letters - by Kraeror - 07.12.2018, 13:12
Re: only letters - by Calisthenics - 07.12.2018, 13:40
Re: only letters - by Kraeror - 07.12.2018, 14:15
Re: only letters - by Logic_ - 07.12.2018, 16:00
Re: only letters - by Kraeror - 08.12.2018, 20:25
Re: only letters - by Kraeror - 08.12.2018, 20:34

Forum Jump:


Users browsing this thread: 1 Guest(s)