27.10.2012, 10:59
Hey guys, I'm getting this error, I have latest 0.3e R2 Server and latest a_samp.inc
The error is on this line
this is the rest of the Stock im trying to add.
Код:
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.
Код:
dist = GetPlayerDistanceFromPoint(playerid, x, y, z);
Код:
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; }