Jump to content
  • 0

Remove nume_prenume


PuRiSaNu

Question

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

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.