09.03.2013, 07:25
dcmd requires you to have a OnPlayerCommandText callback where you explicitly specify the commands it should COMPARE for.
Now please notice that I used the word "compare" in bold. If you're commencing a move from using zcmd to dcmd, this means you're moving back from trying to execute the command function and evaluating its result to comparing hundreds of strings in major cases.
If you're wondering which method is faster:
1. Call one function. Evaluate its result.
2. Compare 1 to (n) strings where n = amount of commands on your server. Call one function.
... then I can tell you, it is the 1st one.
Unless your script contains 1-5 commands, you should definitely use zcmd for command processing. There's _nothing_ to advocate moving from zcmd to an older processing method.
Now please notice that I used the word "compare" in bold. If you're commencing a move from using zcmd to dcmd, this means you're moving back from trying to execute the command function and evaluating its result to comparing hundreds of strings in major cases.
If you're wondering which method is faster:
1. Call one function. Evaluate its result.
2. Compare 1 to (n) strings where n = amount of commands on your server. Call one function.
... then I can tell you, it is the 1st one.
Unless your script contains 1-5 commands, you should definitely use zcmd for command processing. There's _nothing_ to advocate moving from zcmd to an older processing method.