Unknown Commands!
#1

Hey guys whenever i do /rob, /rape it says Unknown commands no error in scripts every plugins loaded !!
Reply
#2

Are you using Zcmd? if yes, It has to be on the bottom, and remove your OnPlayerCommandText function. Else if it is strcmp
it should be like this (for multiple cmds)
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/help", true))
    {
        SendClientMessage(playerid, -1, "SERVER: This is the /help command!");
        return 1;
    }
    if(!strcmp(cmdtext, "/help123", true))
    {
        SendClientMessage(playerid, -1, "SERVER: This is the /help123 command!");
        return 1;
    }
    return 0;
}
Reply
#3

U must put return 1; at the end of CMD
Reply
#4

Change return 0 to 1
Reply
#5

that can be problem or the command crashes use print function after each line and see is command fully executed..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)