22.06.2017, 12:54
Quote:
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;
}