Jump to content

Question

Posted
else
			{
				new rand = random(sizeof(gRandomMats));
				if(IsPlayerInRangeOfPoint(playerid, 10.0, gRandomMats[rand][0],gRandomMats[rand][1],gRandomMats[rand][2]));
		//		IsPlayerInRangeOfPoint(playerid, 10, gRandomMats[rand][0],gRandomMats[rand][1],gRandomMats[rand][2]))
				{
					SetPVarInt(playerid, "InHand", 1);
					SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
					SetPlayerAttachedObject( playerid, 6, 2969, 1, 0.299822, 0.663485, -0.036337, 184.311355, 90.004089, 0.000000, 1.000000, 1.000000, 1.000000 );
				}
			}

 

if(IsPlayerInRangeOfPoint(playerid, 10.0, gRandomMats[rand][0],gRandomMats[rand][1],gRandomMats[rand][2])); linia cu eroarea

D:\server\gamemodes\ExtremeGame.pwn(16447) : error 036: empty statement

 

de ce iau empty statement cand sunt toate conditiile implinite in functie?

2 answers to this question

Recommended Posts

  • 0
Posted

Edit: Nu trebuie sa pui ; la o instructiune de if

Si ce incerci sa faci mai exact? Ca vad ca ai doua lini asemanatoare. Incerci sa compari daca jucatorul e in una din locatii?

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.