SA-MP Forums Archive
What the faster ? ZCMD or Normal Command - 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: What the faster ? ZCMD or Normal Command (/showthread.php?tid=165684)



What the faster ? ZCMD or Normal Command - kurta999 - 05.08.2010

What the faster ?

Sorry for my bad english.


Re: What the faster ? ZCMD or Normal Command - [L3th4l] - 05.08.2010

ZCMD. AND sscanf


Re: What the faster ? ZCMD or Normal Command - kurta999 - 05.08.2010

Quote:
Originally Posted by [L3th4l]
Посмотреть сообщение
ZCMD. AND sscanf
Simple ZCMD command ( without sscanf ) faster at normal command ? XD


Re: What the faster ? ZCMD or Normal Command - Hiddos - 05.08.2010

Yeah. strtok is really slow, I recently switched over to dcmd.

All I can say is that dcmd is faster then strcmp, and I've heard that zcmd is faster then dcmd.


Re: What the faster ? ZCMD or Normal Command - Mr187 - 05.08.2010

zcmd enough said.


Re: What the faster ? ZCMD or Normal Command - RyDeR` - 05.08.2010

strtok is slower but still it rocks!


Re: What the faster ? ZCMD or Normal Command - Hiddos - 05.08.2010

Quote:
Originally Posted by RyDeR`
Посмотреть сообщение
strtok is slower but still it rocks!
Agreed with that, it's great to have your commands just under 1 callback ^^


Re: What the faster ? ZCMD or Normal Command - Sergei - 05.08.2010

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
Agreed with that, it's great to have your commands just under 1 callback ^^
It's great to have commands in separate file or even in more files, categorized by usage than in one callback which is a few thousand lines long and all messed up.

"Normal command" means nothing, for me normal command processor is zcmd, so at least state that you mean strcmp with that.

Quote:
Originally Posted by RyDeR`
Посмотреть сообщение
strtok is slower but still it rocks!
If you never used sscanf then you can say that yes.


Re: What the faster ? ZCMD or Normal Command - dice7 - 05.08.2010

Strcmp inside OnPlayerCommandText is faster


Re: What the faster ? ZCMD or Normal Command - Calgon - 06.08.2010

Quote:
Originally Posted by dice7
Посмотреть сообщение
Strcmp inside OnPlayerCommandText is faster
You're wrong.

http://forum.sa-mp.com/showpost.php?...1&postcount=66