Adding [Reason]
#5

Quote:
Originally Posted by Hot
Why do you guys add:

Код:
!strcmp, !strlen
?

EDIT: Can you explain this line:
pawn Код:
strmid(tmp, cmdtext, strlen(cmd) + strlen(tmp) + 2, strlen(cmdtext));
strmid get the characters from one string, and puts it into another.

Strcmp checks if the two strings are the same. ! means not, so it would check if they weren't the same.

Strlen gets the lengh of the string. ! means not, so it would check if the string had no lengh.
Reply


Messages In This Thread
Adding [Reason] - by Hot - 21.05.2009, 22:08
Re: Adding [Reason] - by Jefff - 21.05.2009, 22:29
Re: Adding [Reason] - by Hot - 21.05.2009, 22:35
Re: Adding [Reason] - by NovaParadox - 21.05.2009, 22:43
Re: Adding [Reason] - by Badger(new) - 21.05.2009, 22:49
Re: Adding [Reason] - by NovaParadox - 21.05.2009, 23:06
Re: Adding [Reason] - by Badger(new) - 21.05.2009, 23:33

Forum Jump:


Users browsing this thread: 1 Guest(s)