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
#2

https://sampwiki.blast.hk/wiki/GetPlayerDistanceFromPoint

Reply
#3

Thanks for helping,but no need another code for me,i need this one.Maybe someones know how to fix it?
Reply
#4

bump
Reply
#5

you have defined INF_FLOAT?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)