Jump to content

Question

Posted

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

  • 0
Posted

tu ce vrei mai exact sa faci acesta este un stock, ai o problema la conectare? Daca nu ai nume rp adica cu _ iti da kick sau ceva de genul?

Daca da atunci ca sa nu ne arati sute si linii de code si erori modifica stockul cu asta

	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;
}
	

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

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.