SA-MP Forums Archive
Code Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Code Problem (/showthread.php?tid=126883)



Code Problem - Peep - 10.02.2010

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 "{"


Re: Code Problem - Fj0rtizFredde - 10.02.2010

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


Re: Code Problem - Peep - 10.02.2010

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