error 017: undefined symbol "pos1X" and another warning
#1

here's the undefined symbol line:
Код:
new Float:Dist = GetDistanceBetweenPoints(pos1X,pos1Y,pos1Z,pos2X,pos2Y,pos2Z);
Here's the warning:
Код:
(2985) : warning 202: number of arguments does not match definition
and heres line 2985:
Код:
id = GetClosestPlayer(playerid)
here's getclosestplayer:
Код:
stock GetClosestPlayer(playerid,Float:limit)
{
	new Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2;
	GetPlayerPos(playerid,x1,y1,z1);
	new Float:Range = 3.0;
	new id = -1;
	foreach(Player,i)
	{
		if(playerid != i)
		{
			GetPlayerPos(i,x2,y2,z2);
			new Float:Dist = GetDistanceBetweenPoints(pos1X,pos1Y,pos1Z,pos2X,pos2Y,pos2Z);
			if(floatcmp(Range,Dist) == 1 && floatcmp(limit,Range) == 1)
			{
				Range = Dist;
				id = i;
			}
		}
	}
	return id;
}
Reply


Messages In This Thread
error 017: undefined symbol "pos1X" and another warning - by NoahF - 28.06.2015, 21:08
Re: error 017: undefined symbol "pos1X" and another warning - by Alex Magaсa - 28.06.2015, 21:29
Re: error 017: undefined symbol "pos1X" and another warning - by Banana_Ghost - 29.06.2015, 09:23

Forum Jump:


Users browsing this thread: 1 Guest(s)