if(char==A)
#1

how to check for a character in a if statement without doing strcmp/strfind
Reply
#2

If you're just checking for one single character/letter in a variable/array:

pawn Код:
if(char == 'A')
For arrays:

pawn Код:
if(chars[45] == 'A')
Reply
#3

if(text[0] == 'A')
if i do that in OnPlayerText callback it seems not to work..
any ideas why?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)