What is command ZCMD and sctrmp
#4

the main difference between those:

strcmp is a function, called inside the OnPlayerCommandText(), so if a command got typed, the strcmp() will get called many times until the command got found (by comparing the string until one matches).

ZCMD is a command "processor", which uses a different method to call a command. it is not utilizing the OnPlayerCommandText() callback, so there is no need to compare countless strings until a command name matches - it uses direct callbacks, one for each command. comparing those 2 methods could be called absurd, coz the more commands you have the more speed increase (in relation) is noticeable.

without any doubt, ZCMD outperforms the OnPlayerCommandText()/strcmp by far.
Reply


Messages In This Thread
What is command ZCMD and sctrmp - by prohp1154 - 13.12.2011, 14:24
Re: What is command ZCMD and sctrmp - by Neo Karls - 13.12.2011, 14:30
Re: What is command ZCMD and sctrmp - by TheArcher - 13.12.2011, 14:33
Re: What is command ZCMD and sctrmp - by Babul - 13.12.2011, 14:34
Re: What is command ZCMD and sctrmp - by TheArcher - 13.12.2011, 14:38
Re: What is command ZCMD and sctrmp - by prohp1154 - 13.12.2011, 14:40
Re: What is command ZCMD and sctrmp - by TheArcher - 13.12.2011, 14:43
Re: What is command ZCMD and sctrmp - by prohp1154 - 13.12.2011, 14:52
Re: What is command ZCMD and sctrmp - by Sinc - 13.12.2011, 15:28
Re: What is command ZCMD and sctrmp - by TheArcher - 13.12.2011, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)