#2

Maybe you mean OnPlayerCommandText(...)? Then:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        // Do something here
        return 1; // MAKE SURE YOU ALWAYS RETURN HERE 1;
    }
    return 0; // AND 0 HERE
}
Reply


Messages In This Thread
help - by krytans - 14.07.2014, 19:16
Re: help - by kamiliuxliuxliux - 14.07.2014, 19:20
Re: help - by krytans - 14.07.2014, 19:39
Re: help - by kamiliuxliuxliux - 14.07.2014, 19:58
Re: help - by krytans - 14.07.2014, 20:15
Re: help - by kamiliuxliuxliux - 14.07.2014, 20:38

Forum Jump:


Users browsing this thread: 1 Guest(s)