Two minor str questions.
#2

To the first question: dont know why people do this, or do you mean that -1:
pawn Код:
if(strfind("Are you in here?", "you", true) != -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.
Reply


Messages In This Thread
Two minor str questions. - by ||123|| - 18.07.2011, 12:26
Re: Two minor str questions. - by Mauzen - 18.07.2011, 12:32
Re: Two minor str questions. - by [HiC]TheKiller - 18.07.2011, 12:34
Re: Two minor str questions. - by ||123|| - 18.07.2011, 12:36

Forum Jump:


Users browsing this thread: 1 Guest(s)