Need help
#1

Hello,i have problem:

Код:
Float:GetDistanceToPointUX(playerid,Float:x1,Float:y1,Float:z1) //By Gabriel "Larcius" Cordes
{
	if (IsPlayerConnected(playerid))
	{
		new Float:x2,Float:y2,Float:z2;
		GetPlayerPos(playerid,x2,y2,z2);
		return GetDistanceBetweenPoints(x1,y1,z1,x2,y2,z2);
	}
	return 1;
}
Код:
C:\Desktop\Free-Roam\gamemodes\fr.pwn(79) : warning 213: tag mismatch
I know what it shoul be:

Код:
Float:GetDistanceToPointUX(playerid,Float:x1,Float:y1,Float:z1) //By Gabriel "Larcius" Cordes
{
	if (IsPlayerConnected(playerid))
	{
		new Float:x2,Float:y2,Float:z2;
		GetPlayerPos(playerid,x2,y2,z2);
		return GetDistanceBetweenPoints(x1,y1,z1,x2,y2,z2);
	}
	return INF_FLOAT;
}
But then i get error:

Код:
C:\Desktop\Free-Roam\gamemodes\fr.pwn(79) : error 017: undefined symbol "INF_FLOAT"
Please help,if someones know whats wrong
Reply


Messages In This Thread
Need help - by Zaec - 23.03.2012, 17:14
Re: Need help - by Vince - 23.03.2012, 17:21
Re: Need help - by Zaec - 23.03.2012, 17:46
Re: Need help - by Zaec - 23.03.2012, 19:12
Re: Need help - by niels44 - 23.03.2012, 19:16

Forum Jump:


Users browsing this thread: 1 Guest(s)