I am getting this error, whats wrong?
#1

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	 if (strcmp("/Redbull", cmdtext, true, 10) == 0)
	 {
		if(IsPlayerInRangeOfPoint(playerid, 1.5, 20.9480, 971.8395, 19.3522))
		{
			if(GetPlayerMoney(playerid) >= 100)
			{
			    GivePlayerMoney(playerid, -100);
			    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER );
	   		    SendClientMessage(playerid, 0xFFFF00AA,"Redbull costed 100$");
			}
			else
			{
  		            SendClientMessage(playerid, 0xFFFF00AA,"Redbull costed 100$");
	                }
			return 1;
               }
I GOT THIS ERROR: error 030: compound statement not closed at the end of file (started at line 93)

This is line 93:
Код:
if(IsPlayerInRangeOfPoint(playerid, 1.5, 20.9480, 971.8395, 19.3522))
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)