Help about is string in text
#1

guys i wanna a code wich say is any string in inputtext like isplayerinvehicle can u help pls
Reply
#2

pawn Код:
if(strlen(inputtext))
Checks if the length of the string isn't 0
pawn Код:
if(strlen(inputtext) > 0)
Checks if the length of the string is above 0
pawn Код:
if(strlen(inputtext) != 0)
Same as the first alternative

All of these alternatives work for what you want to achieve
https://sampwiki.blast.hk/wiki/Strlen
https://sampwiki.blast.hk/wiki/Control_Structures#Operators
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)