Fastest way making commands
#1

Hey.

I have for quite some time used the strcmp way to make commands. But now when I work on a completely new script I wanted to make it as effective possible. I have tried different methods using such as sscanf, dini or whatever it's called. I can't really figure out which seems to be the easiest and the most effective one so if you please could take your time and say which method you like the best and why I would appreciate it a lot.

Thank you.
Reply
#2

Using ZCMD and SSCANF .
Reply
#3

Why and where can I find these?
Reply
#4

ZCMD: https://sampforum.blast.hk/showthread.php?tid=91354

SSCANF: https://sampforum.blast.hk/showthread.php?tid=120356
Reply
#5

dcmd looks nice too
Reply
#6

I'd recommend dcmd to work with, but zcmd is faster. That's true.
Reply
#7

What do they mean with params? I have read it through but never really get what they mean.
pawn Код:
COMMAND:mycommand(playerid, params[])
Why would you recommend me to work with dcmd if zcmd is faster? Is dcmd easier?
Reply
#8

Params is everything after the command itself.

pawn Код:
/mycommand [ThisHereAreAllParams]
Reply
#9

Alright thanks mate. Where can I find this dcmd?
Reply
#10

I wouldn't suggest using dcmd, since it's slower.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)