[Solved] Will this cmd work?
#1

Have a look. I am new to scripting and I made this.
Will this work?

Код:
COMMAND:pay(playerid, params[])
{
	new
 	 payid,
  	amount;

if (!sscanf(params, "ii", payid, amount))
{
  		if (payid != INVALID_PLAYER_ID)
  		{
			new
		  	 playercash[40]
			playercash = GetPlayerMoney
			if(playercash < amount)
			{
			SendClientMessage(playerid, 0xFFFFFFFF, "You can't afford that");
			}
			else
			{
			GivePlayerMoney(payid, amount);
			}
		
		}
 		else SendClientMessage(playerid, 0xFF0000FF, "That player is not connected");
	}
	return 1;
}
I get this warning tough
Quote:

C:\Users\kids\Desktop\try.pwn(249) : warning 203: symbol is never used: "pay"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

Thanks


Reply


Messages In This Thread
[Solved] Will this cmd work? - by waza75 - 06.01.2010, 18:25
Re: [HELP] Will this cmd work? - by ClanDBZVegeta - 06.01.2010, 18:29
Re: [HELP] Will this cmd work? - by waza75 - 06.01.2010, 18:31
Re: [HELP] Will this cmd work? - by ClanDBZVegeta - 06.01.2010, 18:32
Re: [HELP] Will this cmd work? - by Sergei - 06.01.2010, 18:32
Re: [HELP] Will this cmd work? - by waza75 - 06.01.2010, 18:34

Forum Jump:


Users browsing this thread: 1 Guest(s)