strlen checking inputtext? [rep++]
#1

pawn Код:
if(strlen(inputtext) >= 24 || =< 3)
Alright so that's my newb attempt at this, seemingly i've never done it before I think I gave it a pretty alright go, shame it didn't work...



Nevermind, think I got it.

pawn Код:
if(strlen(inputtext) > 24 || strlen(inputtext) < 3)
Reply
#2

You also can do the same with this code:
pawn Код:
if(!(3 < strlen(inputtext) < 24))
It's a bit faster, because you call strlen function only once.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)