GetDistanceFromMeToPoint - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GetDistanceFromMeToPoint (
/showthread.php?tid=166117)
GetDistanceFromMeToPoint -
DarkPower - 07.08.2010
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
Re: GetDistanceFromMeToPoint -
Scarface~ - 07.08.2010
try adding
#include <a_samp> ?
Re: GetDistanceFromMeToPoint -
DarkPower - 07.08.2010
i have allready that
Re: GetDistanceFromMeToPoint -
MrDeath537 - 07.08.2010
GetDistanceFromMeToPoint Is included in a_npc. Not in a_samp. Try adding a_npc to your includes.
Re: GetDistanceFromMeToPoint -
DarkPower - 07.08.2010
Did you read all my entry, i say i put a_npc in topc of script under a_samp
Re: GetDistanceFromMeToPoint -
Lewwy - 07.08.2010
Uhm, you can't have both of them included at the same time I think.
Re: GetDistanceFromMeToPoint -
[HUN]Jaki - 07.08.2010
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));
}
Re: GetDistanceFromMeToPoint -
John_F - 07.08.2010
Haha, looks like someone remembers the distance formula.
Good shit btw.
Re: GetDistanceFromMeToPoint -
DarkPower - 07.08.2010
Why you use public when you can use stock?
Re: GetDistanceFromMeToPoint -
Kar - 07.08.2010
Quote:
Originally Posted by DarkPower
Why you use public when you can use stock?
|
Stone Age>?