Posts: 1,293
Threads: 6
Joined: Jul 2008
Reputation:
0
Not quite, cmdtext[] is the entire "/blah blah"
params[] is the /blah "blah"
Posts: 1,293
Threads: 6
Joined: Jul 2008
Reputation:
0
Well you shouldn't be converting strtok to dcmd, as they're different things entirely... I think you either mean strtok -> sscanf, or strcmp -> dcmd..
If you look at the Fast Commands guide on the wiki you shouldn't need to mess around with cmdtext[] and params[] at all.
Posts: 1,293
Threads: 6
Joined: Jul 2008
Reputation:
0
Sttrok and sscanf are ways of extracting inputs from commands, dcmd and strcmp and .. command "handlers" they're the bits that see which command you're talking about in the first place.. You can use dcmd with strtok if you wish, though it'd make more sense to use dcmd and sscanf together...
I am still not sure what you're actually asking, I feel like I'm having to say the same thing to you alot here..