03.08.2011, 00:02
plz fix it for me thx.
error:
Quote:
dcmd(givecash, 8, cmdtext); return 0; } dcmd_givecash(playerid, params[]) { new giveplayerid, amount; if (sscanf(params, "ud", giveplayerid, amount)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /givecash [playerid/partname] [amount]"); else if (giveplayerid == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found"); else if (amount > GetPlayerMoney(playerid)) SendClientMessage(playerid, 0xFF0000AA, "Insufficient Funds"); else { GivePlayerMoney(giveplayerid, amount); GivePlayerMoney(playerid, 0 - amount); SendClientMessage(playerid, 0x00FF00AA, "Money sent"); SendClientMessage(giveplayerid, 0x00FF00AA, "Money received"); } return 1; } |
Код:
C:\Users\Jot\Desktop\SAMP Server\gamemodes\Banda.pwn(334) : error 010: invalid function or declaration C:\Users\Jot\Desktop\SAMP Server\gamemodes\Banda.pwn(335) : error 010: invalid function or declaration C:\Users\Jot\Desktop\SAMP Server\gamemodes\Banda.pwn(566) : warning 203: symbol is never used: "dcmd_givecash" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.