19.09.2013, 20:31
what's the difference between dcmd and zcmd ?? and when we have to use each one ?
Originally Posted by ZCMD's Thread
This is just a little include that uses OnPlayerCommandText() to process players' commands. Each command has a separate function like in dcmd, but zcmd calls them directly via CallLocalFunction(). Such method is much faster than when you successively compare the text player entered to each command you have in your script (especially if he send a nonexistent cmd, you pass though all then) and its superiority over the old way is proportional to the number of commands.
|
DCMD is a type of making command and ZCMD is also, actually not much differents, just the style
dcmd_mycommand(playerid, params[]) using strcmp CMD:mycommand(playerid, params[]) I'm using ZCMD |
ZCMD is faster though, I saw a chart comparing the speed of DCMD/ZCMD/YCMD and ZCMD+YCMD are much faster.
|