GetDistanceFromMeToPoint
#1

i get this error

C:\Users\NASTIE\Desktop\Untitled.pwn(44) : error 017: undefined symbol "GetDistanceFromMeToPoint"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

i have R8 version of PAWNO and i have #include <a_npc> in top of script
Reply
#2

try adding

#include <a_samp> ?
Reply
#3

i have allready that
Reply
#4

GetDistanceFromMeToPoint Is included in a_npc. Not in a_samp. Try adding a_npc to your includes.
Reply
#5

Did you read all my entry, i say i put a_npc in topc of script under a_samp
Reply
#6

Uhm, you can't have both of them included at the same time I think.
Reply
#7

Don't even try to include it. Use another function like this:
pawn Код:
forward Float:GetDistanceFromPointToPoint(Float:X,Float:Y,Float:Z,Float:tX,Float:tY,Float:tZ);
public Float:GetDistanceFromPointToPoint(Float:X,Float:Y,Float:Z,Float:tX,Float:tY,Float:tZ){
    return Float:floatsqroot((tX-X)*(tX-X)+(tY-Y)*(tY-Y)+(tZ-Z)*(tZ-Z));
}
Reply
#8

Haha, looks like someone remembers the distance formula.
Good shit btw.
Reply
#9

Why you use public when you can use stock?
Reply
#10

Quote:
Originally Posted by DarkPower
Посмотреть сообщение
Why you use public when you can use stock?
Stone Age>?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)