/givemoney won't work
#5

That gave me these...

Код:
C:\Users\x3990.003\Desktop\SELLIZE CNR\filterscripts\essentials.pwn(250) : error 001: expected token: "*then", but found ")"
C:\Users\x3990.003\Desktop\SELLIZE CNR\filterscripts\essentials.pwn(250) : error 029: invalid expression, assumed zero
C:\Users\x3990.003\Desktop\SELLIZE CNR\filterscripts\essentials.pwn(270) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.

Quote:
Originally Posted by pds2012
Посмотреть сообщение
you forgot to put ) at last
pawn Код:
if Info[playerid][aLevel] > 2)
Try This
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
/givemoney won't work - by Sellize - 19.01.2013, 16:59
Re: /givemoney won't work - by Infinity90 - 19.01.2013, 17:02
Re: /givemoney won't work - by Sellize - 19.01.2013, 17:04
Re: /givemoney won't work - by Patrick - 19.01.2013, 17:05
Re: /givemoney won't work - by Sellize - 19.01.2013, 17:09
Re: /givemoney won't work - by Patrick - 19.01.2013, 17:25
Re: /givemoney won't work - by Sellize - 19.01.2013, 17:36

Forum Jump:


Users browsing this thread: 2 Guest(s)