Unknown command?
#1

Whenever i type /givemoney it says unknown command but it compiles without errors
pawn Код:
COMMAND:givemoney(playerid, params[])
{
    if(Info[playerid][aLevel] > 2)
    {
        new
          toplayerid,
          amount;

        if (!sscanf(params, "ii", toplayerid, amount))
        {
          if (toplayerid != INVALID_PLAYER_ID)
          {
            new
              message[40];
            GivePlayerMoney(toplayerid, amount);
            format(message, sizeof(message), "You received $%d from an admin!", amount);
            SendClientMessage(toplayerid, 0x00FF00FF, message);
          }
          else SendClientMessage(playerid, 0xFF0000FF, "You inputed an invalid player.");
        }
        else SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /givemoney <playerid> <amount>");
    }
    else SendClientMessage(playerid, 0xFF0000FF, "Your admin level is too low to perform this command!");
    return 1;
}
Reply


Messages In This Thread
Unknown command? - by Sellize - 19.01.2013, 17:41
Re: Unknown command? - by DeathOnaStick - 19.01.2013, 19:48
Re: Unknown command? - by Sellize - 20.01.2013, 10:09

Forum Jump:


Users browsing this thread: 1 Guest(s)