Givecash command errors
#1

hello i try to edit the Givecash command from Wiki But i get those errors

Код:
C:\Users\Steven\Desktop\Server\gamemodes\Streetlife.pwn(210) : error 017: undefined symbol "amount"
C:\Users\Steven\Desktop\Server\gamemodes\Streetlife.pwn(365) : error 025: function heading differs from prototype
C:\Users\Steven\Desktop\Server\gamemodes\Streetlife.pwn(370) : error 029: invalid expression, assumed zero
C:\Users\Steven\Desktop\Server\gamemodes\Streetlife.pwn(365) : warning 203: symbol is never used: "params"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
And my Script look likes this:


InTopOfScript:
Код:
forward Givecash(playerid,amount);
Under OnPlayerCommandsText
Код:
if(strcmp(cmdtext, "/GiveCash", true, 3))
	{
		Givecash(playerid,amount);
	}
InTheBottem
Код:
Givecash(playerid, params[])
{
	new
		giveplayerid,
		amount;
	else
	{
		GivePlayerMoney(giveplayerid, amount);
		GivePlayerMoney(playerid, 0 - amount);
		SendClientMessage(playerid, 0x00FF00AA, "Money sent");
		SendClientMessage(giveplayerid, 0x00FF00AA, "Money received");
	}
	return 1;
}
Thx to anyone who help me.
Reply


Messages In This Thread
Givecash command errors - by basker - 06.12.2009, 13:08
Re: Givecash command errors - by Jeffry - 06.12.2009, 13:13
Re: Givecash command errors - by DJDhan - 06.12.2009, 13:16
Re: Givecash command errors - by DeathOnaStick - 06.12.2009, 13:16
Re: Givecash command errors - by LarzI - 06.12.2009, 15:05
Re: Givecash command errors - by DeathOnaStick - 06.12.2009, 15:08
Re: Givecash command errors - by LarzI - 06.12.2009, 15:18
Re: Givecash command errors - by godknightx - 06.12.2009, 15:19

Forum Jump:


Users browsing this thread: 2 Guest(s)