SA-MP Forums Archive
Fastest way making commands - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Fastest way making commands (/showthread.php?tid=229376)



Fastest way making commands - Omecken - 21.02.2011

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.


Re: Fastest way making commands - Rock18 - 21.02.2011

Using ZCMD and SSCANF .


Re: Fastest way making commands - Omecken - 21.02.2011

Why and where can I find these?


Re: Fastest way making commands - xir - 21.02.2011

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

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


Re: Fastest way making commands - AlExAlExAlEx - 21.02.2011

dcmd looks nice too


Re: Fastest way making commands - Jochemd - 21.02.2011

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


Re: Fastest way making commands - Omecken - 21.02.2011

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?


Re: Fastest way making commands - Jochemd - 21.02.2011

Params is everything after the command itself.

pawn Код:
/mycommand [ThisHereAreAllParams]



Re: Fastest way making commands - Omecken - 21.02.2011

Alright thanks mate. Where can I find this dcmd?


Re: Fastest way making commands - Macluawn - 21.02.2011

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