Code Problem
#1

this code have some errors/warnings , anyone know how to fix them ?

Код:
public IsAtDealership(playerid)
{
	if(IsPlayerConnected(playerid))
	{
	  if(PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855) || PlayerToPoint(50,playerid,537.3366,-1293.2140,17.2422) || PlayerToPoint(35,playerid,2521.5544,-1524.4504,23.8365) || PlayerToPoint(50,playerid,2155.0146,-1177.3333,23.8211))
		{
		  return 1;
		}
line 27605>	else if(PlayerToPoint(50,playerid,1648.7046,-1084.7727,23.7758 || PlayerToPoint(50,playerid,299.1723,-1518.6627,24.6007 || PlayerToPoint(50,playerid,1648.7046,-1084.7727,23.7758))
line27606> {
		  return 1;
		}
	}
	return 0;
}
Errors:
(2765) : warning 213: tag mismatch
(2766) : warning 213: tag mismatch
(2766) : error 001: expected token: ",", but found "{"
Reply
#2

You forgot a ) in the 2 first PlayerToPoint on line 27605 :P
Reply
#3

Quote:
Originally Posted by Fj0rtizFredde
You forgot a ) in the 2 first PlayerToPoint on line 27605 :P
ah yes , im so blind
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)