14.06.2015, 05:47
Quote:
Would you guys stop worrying about milliseconds over 100,000 command calls?
|
It all started when someone's benchmarks(I-ZCMD vs y_commands) weren't matching with mine.
I had PMed Zeex and he never responded therefore I made a new thread 'I-ZCMD'.Never intended to compete with others.Moreover I named it "I-ZCMD" because it is Zeex's concept which I have just updated.
Quote:
Hey Yashas, congratulations for your ZCMD modification, its really good I have to assume, but its not the fastest command processor in fact, you can compare it to iCMD 8.0 which is being developed by one of my friends, good work anyways, keep it up.
|

I want to benchmark it with I-ZCMD.
Код:
#include <a_samp> #include <icmd> // MAIN: main() { CallLocalFunction("OnPlayerCommandText","is",0,"mycommand"); } forward OnCommandCalled(playerid, cmd[]); public OnCommandCalled(playerid, cmd[]) { if (!cmd_exists(cmd)) { SendClientMessage(playerid, -1, "Comando inexistente."); return ICMD_ERROR; } return ICMD_OKAY; } public Listeners(playerid, params[]) { get_cmd_params(mycommand) { print("CMD CALLED"); } return 0; }