error 017: undefined symbol "GetPlayerDistanceFromPoint"
#1

Hey guys, I'm getting this error, I have latest 0.3e R2 Server and latest a_samp.inc

Код:
C:\Users\Dan\Desktop\samp03e_svr_R2_win32 - Copy\gamemodes\Gamemode.pwn(2313) : error 017: undefined symbol "GetPlayerDistanceFromPoint"

Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
The error is on this line

Код:
dist = GetPlayerDistanceFromPoint(playerid, x, y, z);
this is the rest of the Stock im trying to add.

Код:
stock GetClosestVehicle(playerid)
	{
	#pragma unused playerid
	new Float:x, Float:y, Float:z;
	new Float:dist, Float:closedist=9999, closeveh;
	for(new i=1; i < MAX_VEHICLES; i++)
	{
	if(GetVehiclePos(i, x, y, z))
	{
	dist = GetPlayerDistanceFromPoint(playerid, x, y, z);
	if(dist < closedist)
	{
	closedist = dist;
	closeveh = i;
	}
}
}
	return closeveh;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)