SA-MP Forums Archive
Just an some error issue - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Just an some error issue (/showthread.php?tid=273719)



Just an some error issue - jot16 - 03.08.2011

plz fix it for me thx.

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;
}

error:
Код:
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.



Re: Just an some error issue - MP2 - 03.08.2011

It helps if you point out which line is which.