Commands help.
#3

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    // Bla bla
    return 1;
}
Only use return 0; at the end of the call back, like your last command, for example:
pawn Код:
if(strcmp(cmdtext, "/command",true))
    {
       // Bla bla
       return 1;
    }
    else if(!strcmp(cmdtext, "/command", true))
    {
        // Bla bla
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Commands help. - by xSkullx - 01.08.2012, 08:32
Re: Commands help. - by RedJohn - 01.08.2012, 08:46
Re: Commands help. - by Cxnnor - 01.08.2012, 08:57
Re: Commands help. - by xSkullx - 01.08.2012, 10:58
Re: Commands help. - by Devilxz97 - 01.08.2012, 11:00
Re: Commands help. - by ZBits - 01.08.2012, 11:48
Re: Commands help. - by farCry.xD - 01.08.2012, 12:00
Re: Commands help. - by xSkullx - 01.08.2012, 14:50
Re: Commands help. - by xSkullx - 01.08.2012, 15:16
Re: Commands help. - by farCry.xD - 01.08.2012, 15:25

Forum Jump:


Users browsing this thread: 3 Guest(s)