Command works but says unknown command?
#2

pawn Код:
CMD:ooc(playerid, params[])
{
    new OOCT[126];
    new string[246];
    if(sscanf(params, "s[126]", OOCT)) return SendClientMessage(playerid, COLOR_RED, "USE: /ooc [message]");
    if(ooc == 0)
    {
        return SendClientMessage(playerid, COLOR_GREY, "The OOC channel is closed!");
    }
    else
    {
        format(string, sizeof(string), "(( OOC: %s: %s ))", pName(playerid), OOCT);
        SendClientMessageToAll(COLOR_GREY, string);
        print(string);
        return 1;
    }
    return 1;
}
i think this will be work
Reply


Messages In This Thread
Command works but says unknown command? - by Shuffler - 10.10.2011, 12:42
Re: Command works but says unknown command? - by QuaTTrO - 10.10.2011, 12:45
Re: Command works but says unknown command? - by Jafet_Macario - 10.10.2011, 12:49
Re: Command works but says unknown command? - by Kush - 10.10.2011, 13:20

Forum Jump:


Users browsing this thread: 1 Guest(s)