Posts: 288
Threads: 119
Joined: Apr 2009
Reputation:
0
How in the world do u make a command like
/kill id
and the actions happen to them..Not YOU..I only know how to make stuff that happen to me
Please give me a example of how i can type /kill id and it kills them..
Posts: 1,293
Threads: 6
Joined: Jul 2008
Reputation:
0
Well as much as strtok i popular it's unreliable and IMO harder to use than SSCANF.
DCMD is a "better" way of handling commands than strcmp, but you can still use SSCANF with normal commands. I suggest you look at the Fast Commands section on the wiki for more information.
EDIT: Devil as much as I'm sure Sal_kings appreciates your help, I think they want to understand what is going on =/
Posts: 31
Threads: 2
Joined: Mar 2008
Reputation:
0
I've never ever ever had any problems with strtok.
Posts: 1,293
Threads: 6
Joined: Jul 2008
Reputation:
0
It has fewer functions, can be broken when using long messy strings (people do this maliciously to "break" servers, and it isn't as clear.