Posts: 864
Threads: 57
Joined: Jan 2013
Reputation:
0
ZCMD commands are just faster to create.
And ZCMD commands are also most used to learn the pawn (and because the guy learnt the pawn with ZCMD, he continues to use ZCMD)
But no differences about performances.
With ZCMD, your server will be as fast as if you use strcmp.
Posts: 113
Threads: 29
Joined: Mar 2013
Reputation:
0
It is, and ZCMD is fast indeed. But you should take into a count of using YCMD instead.
Posts: 882
Threads: 50
Joined: Jun 2012
Reputation:
0
Comparing strings are always slower.Because strings are arrays.
new string[10];
If you have to check a command then you will have to check string[0],string[1],....till [9].
That makes things slow.
If you go through the include, you will notice that ZCMD works very much differently.
When you use COMMAND:cmdname you are actually creating a function with a name cmd_cmdname.
So what ZCMD does is when it receives a command it joins "cmd_" and the command entered and calls the respective function.So there is no string checking or any such thing that would possibly make the server processing slow.