Help needed with YCMD
#7

Quote:
Originally Posted by [HK]Ryder[AN]
Посмотреть сообщение
You are returning 0 in variable success but they are also returning 1.
how can they return both of them
I will explain...

Let's supose I have a Y_command called heybro
Код:
YCMD:heybro(playerid, params[], help)
{
    if (help)
    {
        return SendClientMessage(playerid, 0xFF0000AA, "Just a greeting.");
    }
    else
    {
          SendClientMessage(playerid, -1, "Hey yo!");
     }
    return 1;
}
and supose I have the following code at OnPlayerCommandPerformed

Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success){
	printf("%s: %d", cmdtext, success);
        return -1;
}
Typing the command In-game the output given in console is...
Код:
/heybro: 0
Reply


Messages In This Thread
YCMD: server don't process commands - by deb014 - 09.12.2012, 01:27
Re: Help needed with YCMD - by Dragony92 - 09.12.2012, 03:09
Respuesta: Re: Help needed with YCMD - by deb014 - 09.12.2012, 03:18
Re: Help needed with YCMD - by [HK]Ryder[AN] - 09.12.2012, 05:47
Re: Help needed with YCMD - by deb014 - 09.12.2012, 14:28
Re: Help needed with YCMD - by [HK]Ryder[AN] - 09.12.2012, 14:33
Re: Help needed with YCMD - by deb014 - 09.12.2012, 14:42

Forum Jump:


Users browsing this thread: 3 Guest(s)