What is better?
#1

Can you tell me, what is the name of this commands? Ex: if(strcmp(cmd, "/agivemats", true) == 0)

And what is faster, this commands or y_commands?
I need to optimize my script, i think this can optimize my script too much
Reply
#2

Hello!

I think this commands doesn't have a name, except OnPlayerCommandText.

To your second question:
I think y_commands are faster, but it doesn't have a big difference.


- Mencent
Reply
#3

Well if you use over 50 or better over 100 commands use zcmd, ycmd, ...
For small modes ~10 cmds like filterscripts, strcmp should be better
Reply
#4

I have maybe 200-300 commands... In strcmp i have 150-200 and about 100 in Ycmd
Reply
#5

Then YCMD, OCMD, DCMD, ZCMD and so on, are better.
strcmp is too slowly for so much commands.


- Mencent
Reply
#6

I recommend converting all your commands to a specific command processor. You can give Yashas' improved version of ZCMD (originally by Zeex) a try / use normal ZCMD version (Zeex) / YCMD (Y_Less) / ECMD (Emmet_) / LifeCMD (a plugin), DCMD (old, but its fine), or even try making your own command processor and rely on it after taking benchmarks!

Overall, if you are confused you may use ZCMD as it's fine.
Reply
#7

I will convert all commands from strcmp to YCMD! Thank you all!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)