19.01.2013, 16:59
So this cmd
Shows me this error
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;
}
Код:
C:\Users\x3990.003\Desktop\SELLIZE CNR\filterscripts\essentials.pwn(251) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.