18.07.2011, 12:32
To the first question: dont know why people do this, or do you mean that -1:
In this case strfind returns -1 when the string wasnt found at all, so the != -1 means "is that substring somewhere in the string?"
To question 2:
iValue = string;
wont work, this either wont compile, or will put the byte-value of the first letter of the string into iValue, and not the 250.
pawn Код:
if(strfind("Are you in here?", "you", true) != -1)
To question 2:
iValue = string;
wont work, this either wont compile, or will put the byte-value of the first letter of the string into iValue, and not the 250.