Hello i Get That's Error
#1

Hello, When i made my Command : /pay I Got these Errors Here Can somone help me

C:\Documents and Settings\Philippe Veilleux.PHILIPPE\Bureau\Nouveau dossier\gamemodes\LCDM.pwn(509) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Philippe Veilleux.PHILIPPE\Bureau\Nouveau dossier\gamemodes\LCDM.pwn(509) : error 017: undefined symbol "params"
C:\Documents and Settings\Philippe Veilleux.PHILIPPE\Bureau\Nouveau dossier\gamemodes\LCDM.pwn(509) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Philippe Veilleux.PHILIPPE\Bureau\Nouveau dossier\gamemodes\LCDM.pwn(509) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

if (strcmp("/pay", cmdtext, true, 10) == 0)
{
new
giveplayerid,
amount;
new
sscanf;
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");
GivePlayerMoney(giveplayerid, amount);
GivePlayerMoney(playerid, 0 - amount);
SendClientMessage(playerid, 0x00FF00AA, "Money sent");
SendClientMessage(giveplayerid, 0x00FF00AA, "Money received");
)
return 1;
)
Reply


Messages In This Thread
Hello i Get That's Error - by salut693123 - 14.11.2010, 14:13
Re: Hello i Get That's Error - by Luis- - 14.11.2010, 14:14
Re: Hello i Get That's Error - by dark_clown - 14.11.2010, 14:15
Re: Hello i Get That's Error - by Elorreli - 14.11.2010, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)