[Please help]DCMD and STRTOK
#1

Hello,
I was converting the STRTOK commands to DCMD, and I want to ask, the cmdtext[] is the same as params[]?

Answer me quickly, please?
Reply
#2

Not quite, cmdtext[] is the entire "/blah blah"
params[] is the /blah "blah"
Reply
#3

what if I change the cmdtext[] to params[] is this the same?
Reply
#4

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

I mean, I have to convert them, because I cant use the strtok or the other stuff except dcmd at filterscripts...

or any other advice??
Reply
#6

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

everything works fine... thanks for your help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)