Need help with my /shop and /heal
#3

I come up with two errors now
(151) : error 036: empty statement
(156) : error 029: invalid expression, assumed zero
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/heal", cmdtext, true, 10) == 0)
	{
	if( GetPlayerMoney( playerid ) < 250 ); // line 151
	{
	SetPlayerHealth(playerid, 100);
	GivePlayerMoney(playerid, -250);
	}
	else // line 156
	{
	SendClientMessage(playerid, 0xAA3333AA, "You don't have enough cash!");
	}
	return 1;
	}
}
Also, no idea what ternary operator is.
Reply


Messages In This Thread
Need help with my /shop and /heal - by JoeStoner - 20.12.2013, 19:40
Re: Need help with my /shop and /heal - by niels44 - 20.12.2013, 20:02
Re: Need help with my /shop and /heal - by JoeStoner - 20.12.2013, 20:43
Re: Need help with my /shop and /heal - by Kells - 20.12.2013, 20:48
Re: Need help with my /shop and /heal - by JoeStoner - 20.12.2013, 20:52
Re: Need help with my /shop and /heal - by Kells - 20.12.2013, 20:56
Re: Need help with my /shop and /heal - by Kells - 20.12.2013, 21:01
Re: Need help with my /shop and /heal - by JoeStoner - 20.12.2013, 21:14
Re: Need help with my /shop and /heal - by Kells - 20.12.2013, 21:16

Forum Jump:


Users browsing this thread: 3 Guest(s)