- 0
Remove nume_prenume
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
PuRiSaNu
Salut, am incercat o multime de moduri in care sa elimin nume_prenume, dar am esuat, si am luat hotararea de a cere support poate cineva ma poate ajuta codul este urmatorul:
stock IsPlayerNameCorrect(const name[])
{
new bool:Symbol;
if(name[0] < 'A' || name[0] > 'Z') return 0;
for(new A = 1; A < strlen(name); A++)
{
if(name[A] == '_')
{
if(Symbol || name[A+1] < 'A' || name[A+1] > 'Z') return 0;
Symbol = true;
A += 2;
continue;
}
if(name[A] < 'a' || name[A] > 'z') return 0;
}
if(!Symbol) return 0;
return 1;
}
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now