13.12.2011, 14:34
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.
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.