Jump to content
Sign in to follow this  

Verificare nr. de caractere

Recommended Posts

Salut, voiam să vă intreb dacă există o modalitate de a număra caracterele unui text fără anumite caractere aflate intre nişte caractere specifice.

Spre exemplu: {FFFFFF}Ex , are 10 caractere, dar aş dorii să nu pună la număr caracterele aflate intre {}, deci să fie in total doar 2 caractere.

Aşa arată verificare pe care am făcut-o, dar după cum am spus, numara chiar şi ce se află intre {}:

if(strlen(inputtext) < 5 || strlen(inputtext) > 10) ...

Şi dacă se poate aş dorii şi un loc unde pot afla mai multe despre diferite "funcţii" dacă le pot spune aşa (nu cele de pe wiki - samp, asemanatoare "strlen")


Share this post

Link to post
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.

Reply to this topic...

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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.