SA-MP Forums Archive
How to use YCMD? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to use YCMD? (/showthread.php?tid=402309)



How to use YCMD? - JavoDiaz - 26.12.2012

Hi again, I'm using ZCMD but somebody tell me that YCMD is more faster, I saw the ****** thread about YCMD but I don't understand well. Can someone give me an example of an YCMD command and the use of the param "help"?


Thanks.


Re: How to use YCMD? - deffo - 26.12.2012

https://sampforum.blast.hk/showthread.php?tid=402278
just an example ^^


Re: How to use YCMD? - JavoDiaz - 26.12.2012

Thank you! But I have to create the command /help [command] to display the help that I put in every command?



Another doubt:

I can put:

pawn Код:
YCMD:hello(playerid, params[])
{
    SendClientMessageToAll(-1, "test");
    return 1;
}
Without the help param?


Re: How to use YCMD? - deffo - 26.12.2012

Yes you have to create /help. (YCMD:help)
Its your wish you create it or not, and how you create it.


Your another doubt: Yes you can write it that way or like this below which is the correct way of writing it:
pawn Код:
YCMD:hello(playerid, params[],help) //put the parameter help to avoid warnings even though you are not using it
{
        //do something here
        SendClientMessageToAll(-1, "test");
    return 1;
}
It will work irrespective of parameters.


Re: How to use YCMD? - JavoDiaz - 26.12.2012

Oh I have just read that ZCMD is faster than YCMD, in the post of YCMD ****** said the opposite that YCMD is faster than ZCMD. ****** lies? I don't think so but in the test ZCMD is faster :/


Re: How to use YCMD? - Faisal_khan - 26.12.2012

Care to read it correctly.
Quote:
Originally Posted by ******
Посмотреть сообщение
Why do we need another command processing system? ZCMD is already very fast!

y_commands is actually now FASTER than ZCMD and is designed to handle huge numbers of commands. Additionally included in that speed is permission checks (to set exactly who can use the command), a help system, command renaming and removal plus more.



Re: How to use YCMD? - JavoDiaz - 26.12.2012

Quote:

y_commands is actually now FASTER than ZCMD

I have read it.


Re: How to use YCMD? - deffo - 26.12.2012

ZCMD is already very fast, you don't need YCMD unless you have 10000s of commands to process. Only then you will see the difference with naked eye very clearly, otherwise they all are same when you type commands ingame, they are all fast, people even use /strcmp.