Jump to content

Verificare nr. de caractere


Marcel2

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")

 

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

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

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

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