"/car" help | need some direction
#2

x_v is simply a string that has a 256 string size. Now, strtok is used to find what is typed AFTER a space, so this code simply states that if the player does not type in anything after a space (or does not type a space) it will sow the message.

EDIT: More on strtok can be found HERE

EDIT2: Forgot about the strlen part, strlen is used to get the length of the string, so lets say the string is test, the length is 4. Now, what it is checking is if there is no size, meaning it is 0, and so it will show the message.
Reply


Messages In This Thread
"/car" help | need some direction - by darkvsoul36 - 23.07.2012, 00:12
Re: "/car" help | need some direction - by Kindred - 23.07.2012, 00:14
Re: "/car" help | need some direction - by darkvsoul36 - 23.07.2012, 00:20

Forum Jump:


Users browsing this thread: 1 Guest(s)