Weird issue
#1

Код:
forward GateCheck();
public GateCheck()
{
	for(new i;i<MAX_PLAYERS;i++)
	{
	`	if(IsPlayerInRangeOfPoint(i, 7.0, 1589.0280,-1637.5922,13.4439) && gStatus == false)//3010
		{
		if(pInfo[i][gTeam] == LSPD)
 		{
   			MoveDynamicObject(pgate, 1589.87231, -1637.98901, 9.50876,2.9);
      		gStatus = true;
	    }
	    }
	    else if(!IsPlayerInRangeOfPoint(i, 7.0, 1589.0280,-1637.5922,13.4439) && gStatus == true)
	    {
	    if(pInfo[i][gTeam] == LSPD)
	    {
	      	MoveDynamicObject(pgate, 1589.87231, -1637.98901, 13.84950,2.9);
	      	gStatus = false;
	    }
	    }
	    else if(IsPlayerInRangeOfPoint(i, 7.0, 1642.9318, -1707, 16.2753) && gStatus2 == false)
	    {
	    if(pInfo[i][gTeam] == FBI)
	    {
	    	MoveDynamicObject(fgate, 1642.9318, -1707, 16.2753,2.9);
	    	gStatus2 = true;
	    }
	    }
	    else if(!IsPlayerInRangeOfPoint(i, 7.0, 1642.9318, -1707, 16.2753) && gStatus2 == true)
	    {
	    if(pInfo[i][gTeam] == FBI)
	    {
	    	MoveDynamicObject(fgate, 1642.9318, -1714.0424, 16.2753,2.9);
	    	gStatus2 = false;
	    }
	    }
	    else if(IsPlayerInRangeOfPoint(i, 7.0, 1634.2770, -1674.0737, 12.7430) && gStatus7 == false)
	    {
	    if(pInfo[i][gTeam] == FBI)
	    {
	    	MoveDynamicObject(fgate2, 1634.2770, -1674.0737, 12.7430,2.9);
	    	gStatus7 = true;
	    }
	    }
	    else if(!IsPlayerInRangeOfPoint(i, 7.0, 1634.2770, -1674.0737, 12.7430) && gStatus7 == true)
	    {
	    if(pInfo[i][gTeam] == FBI)
	    {
	    	MoveDynamicObject(fgate2, 1634.2770, -1674.0737, 15.2030,2.9);
	    	gStatus7 = false;
	    }
	    }
	    else if(IsPlayerInRangeOfPoint(i, 7.0, 1634.2770, -1675.5938, 12.7430) && gStatus8 == false)
	    {
	    if(pInfo[i][gTeam] == FBI)
	    {
	    	MoveDynamicObject(fgate3, 1634.2770, -1675.5938, 12.7430,2.9);
	    	gStatus8 = true;
	    }
	    }
	    else if(!IsPlayerInRangeOfPoint(i, 7.0, 1634.2770, -1675.5938, 12.7430) && gStatus8 == true)
	    {
	    if(pInfo[i][gTeam] == FBI)
	    {
	    	MoveDynamicObject(fgate3, 1634.2770, -1675.5938, 15.2030,2.9);
	    	gStatus8 = false;
	    }
	    }
	    else if(IsPlayerInRangeOfPoint(i, 7.0, 1715.0977, -1691.9338, 12.5200) && gStatus9 == false)
	    {
	    if(pInfo[i][gTeam] == FBI)
	    {
	    	MoveDynamicObject(fgate4, 1715.0977, -1691.9338, 12.5200,2.9);
	    	gStatus9 = true;
	    }
	    }
	    else if(!IsPlayerInRangeOfPoint(i, 7.0, 1715.0977, -1691.9338, 12.5200) && gStatus9 == true)
	    {
	    if(pInfo[i][gTeam] == FBI)
	    {
	    	MoveDynamicObject(fgate4, 1715.0977, -1691.9338, 15.1600,2.9);
	    	gStatus9 = false;
	    }
	    }
	    else if(IsPlayerInRangeOfPoint(i, 7.0, 1716.2777, -1691.9338, 12.5200) && gStatus10 == false)
	    {
	    if(pInfo[i][gTeam] == FBI)
	    {
	    	MoveDynamicObject(fgate5, 1716.2777, -1691.9338, 12.5200,2.9);
	    	gStatus10 = true;
	    }
	    }
	    else if(!IsPlayerInRangeOfPoint(i, 7.0, 1716.2777, -1691.9338, 12.5200) && gStatus10 == true)
	    {
	    if(pInfo[i][gTeam] == FBI)
	    {
	    	MoveDynamicObject(fgate5, 1716.2777, -1691.9338, 15.1600,2.9);
	    	gStatus10 = false;
	    }
	    }
	    else if(IsPlayerInRangeOfPoint(i, 7.0, 895.2880, -1220.7546, 20.0600) && gStatus3 == false)
	    {
		if(pInfo[i][gTeam] == Army)
		{
	        MoveDynamicObject(agate, 895.2880, -1220.7546, 20.0600,2.9);
	        gStatus3 = true;
	    }
	    }
	    else if(!IsPlayerInRangeOfPoint(i, 7.0,895.2880, -1220.7546, 20.0600) && gStatus3 == true)
	    {
	    if(pInfo[i][gTeam] == Army)
	    {
	        MoveDynamicObject(agate, 895.2880, -1220.7546, 25.3681,2.9);
	        gStatus3 = false;
	    }
	    }
	    else if(IsPlayerInRangeOfPoint(i, 7.0,765.5290, -1351.0122, 13.4800) && gStatus4 == false)
	    {
	    if(pInfo[i][gTeam] == SWAT)
	    {
	        MoveDynamicObject(sgate, 765.5290, -1351.0122, 13.4800,2.9);
	        gStatus4 = true;
	    }
	    }
	    else if(!IsPlayerInRangeOfPoint(i, 7.0,765.5290, -1351.0122, 13.4800) && gStatus4 == true)
	    {
	    if(pInfo[i][gTeam] == SWAT)
	    {
	        MoveDynamicObject(sgate, 765.5290, -1351.0122, 18.6200,2.9);
	        gStatus4 = false;
	    }
	    }
	    else if(IsPlayerInRangeOfPoint(i, 7.0, 2446.89648, -969.57941, 76.25838) && gStatus6 == false)
	    {
	    if(pInfo[i][gTeam] == Terrorist)
	    {
	         MoveDynamicObject(tgate, -68.4472, -1601.3073, -0.9400,2.9);
	         gStatus6 = true;
	    }
	    }
	    else if(!IsPlayerInRangeOfPoint(i, 7.0, 2446.89648, -969.57941, 76.25838) && gStatus6 == true)
	    {
	    if(pInfo[i][gTeam] == Terrorist)
	    {
	         MoveDynamicObject(tgate, -68.4472, -1601.3073, 4.4091,2.9);
	         gStatus6 = false;
	    }
	    }
	}
	return 1;
}
Hm.. i checked the full code but i'm unable to find where is the error. What is the problem?
Код:
(3010) : error 029: invalid expression, assumed zero
(3010) : warning 215: expression has no effect
(3010) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#2

Код:
	`	if(IsPlayerInRangeOfPoint(i, 7.0, 1589.0280,-1637.5922,13.4439) && gStatus == false)//3010
Remove the character marked with red color.
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Код:
	`	if(IsPlayerInRangeOfPoint(i, 7.0, 1589.0280,-1637.5922,13.4439) && gStatus == false)//3010
Remove the character marked with red color.
Thx for helping
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)