How to change SERVER: Unknown command
#15

Quote:
Originally Posted by KizZweLL
View Post
Sorry for bumping the topic.
But I did what you guys talking about but still it sends me SERVER:Unknown Command.

It worked from my past scripts idk why it won't work now.
is this a update bug?
pawn Code:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
      new str[200];
      if(strlen(cmdtext) < 20) format(str,sizeof(str),"The command %s is not available. Try /cmds instead.",cmdtext);
      else format(str,sizeof(str),"This command is not available, try /cmds instead.");
      PlayerPlaySound(playerid,5204 ,0.0,0.0,0.0);
      return SendClientMessage(playerid,-1,str);
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)