returning a value thats already returned?
#3

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        if(Donator[playerid]==1)
        {
            SendClientMessage(playerid,COLOR_RED,"lol");
        }
        return 1;
    }
    return 0;
}
A command must return 1,else it will send you "SERVER: Unknown command." even if the command will affect.
Reply


Messages In This Thread
returning a value thats already returned? - by WillyP - 04.09.2010, 11:52
Re: returning a value thats already returned? - by Mauzen - 04.09.2010, 11:54
Re: returning a value thats already returned? - by [XST]O_x - 04.09.2010, 11:55
Re: returning a value thats already returned? - by WillyP - 04.09.2010, 12:00
Re: returning a value thats already returned? - by [XST]O_x - 04.09.2010, 12:03
Re: returning a value thats already returned? - by WillyP - 04.09.2010, 12:42

Forum Jump:


Users browsing this thread: 1 Guest(s)