y_commands question
#1

I don't understand the help part, whether help is true or not.
How do I make it accessible so it will display that message "Lists all the commands a player can use."

pawn Код:
YCMD:help(playerid, params[], help)
{
    if (help)
    {
        SendClientMessage(playerid, 0xFF0000AA, "Lists all the commands a player can use.");
    }
    else
    {
        //
    }
    return 1;
}
Reply
#2

AFAIK help parameter works this way:

I type /mycmd help, so the if(help) part will be executed. And if params isn't 'help', then the normal command will be executed.
Reply
#3

It doesn't work, I have tried.
Reply
#4

This doesn't work as well.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)