Quote:
Originally Posted by Omirrow
pawn Код:
strcmp(cmdtext, "/xx ", true, 4)
What does actually this do? I mean, what if it's longer than 4 characters, my command's output is usually something like that: "/xx hello people, this is a channel that you can talk like that." So, in this situation, should I put an estimated length?
|
It only compares the first 4 characters "
/xx hello people, this is a channel that you can talk like that." and ignores the params part.
@jlalt: strfind returns -1 if not found.