Detecting a cmd and the value, zcmd issue
#10

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)