[Include] y_commands - Most flexible and fastest command processor, now on the YSI wiki
#18

Quote:
Originally Posted by Kruzz
Посмотреть сообщение
Is there any way to return commands like in ZCMD?

I mean this:
Код:
CMD:command(playerid, params[])
{
	return cmd_anothercommand(playerid, params);
}
Will Command_ReProcess make the job?
Yes, but not on it's own. Also it's better to let YCMD do that itself. The alternative is to do this:
pawn Код:
#define CallCommand(%0,%1) CallLocalFunction("OnPlayerCommandText","is",%0,%1)

#define Y_COMMANDS_NO_IPC
#include <YSI\y_commands>
No it's not the best, and if you don't know what IPC is then you SHOULD look at the source of YCMD (mainly the impl.inc for it). It will work. To use it just do this:
pawn Код:
/*Your Code (and yes YCMD can handle ZCMD syntax):
CMD:command(playerid, params[])
{
    return CallCommand(playerid, params);
}
My Code:*/

CMD:fakecmd(playerid, params[])
{
    new cmd_and_params[136], targetplayer;
    sscanf(params, "us[136]", targetplayer, cmd_and_params);
    return CallCommand(targetplayer, cmd_and_params);
}
Reply


Messages In This Thread
y_commands - Most flexible and fastest command processor, now on the YSI wiki - by corne - 15.04.2015, 18:46
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by SickAttack - 16.04.2015, 05:29
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Crayder - 16.04.2015, 05:41
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by corne - 16.04.2015, 14:04
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Max_Andolini - 02.06.2015, 12:55
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by [KHK]Khalid - 02.06.2015, 16:21
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by RaeF - 03.06.2015, 12:09
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Max_Andolini - 03.06.2015, 13:18
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by RaeF - 03.06.2015, 23:13
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by justice96 - 27.07.2015, 08:24
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Crayder - 27.07.2015, 08:35
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by JaydenJason - 27.07.2015, 09:34
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by justice96 - 27.07.2015, 11:48
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by RaeF - 27.07.2015, 12:21
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by justice96 - 27.07.2015, 12:28
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Crayder - 27.07.2015, 16:26
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Kruzz - 02.12.2015, 18:45
Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Crayder - 02.12.2015, 19:52
Respuesta: Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Zume - 02.12.2015, 22:42
Re: Respuesta: Re: y_commands - Most flexible and fastest command processor, now on the YSI wiki - by Crayder - 03.12.2015, 01:41

Forum Jump:


Users browsing this thread: 1 Guest(s)