commands works but also returns "unknown command"
#2

This is weird as it seems you were doing the code alright, try this instead:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (!strcmp(cmdtext,"/makemehappy",true))
    {
      SetPlayerHealth(playerid, 100);
      GivePlayerMoney(playerid,1000000);
      return 1;
    }
    return SendClientMessage(playerid,0xffffffff,"I don't know this command.");
}
And tell me if it says "I don't know this command" or it keeps saying "Unknown command"
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)