[HELP PLEEASE] calculating kilometers from a point
#3

pawn Код:
GetPointDistanceToPoint3D(fX, fY, fZ, 792.0, 1212.0, 24.5);
format(string, sizeof(string), " Kilomters %d to the point", GetPointDistanceToPoint3D);
What are you trying to do here? You're first using GetPointDistanceToPoint3D without actually assigning the value to any variables at all. Then you try use the function without any params. In addition to that, you're trying to use a float as a integer, %d = integer, %f = Float.

pawn Код:
new Float:Distance;
Distance = GetPointDistanceToPoint3D(fX, fY, fZ, 792.0, 1212.0, 24.5);
format(string, sizeof(string), " Kilomters %f to the point", Distance);
Give that a go.
Reply


Messages In This Thread
[HELP PLEEASE] calculating kilometers from a point - by TheArcher - 14.09.2011, 20:22
Re: [HELP PLEEASE] calculating kilometers from a point - by rt-2 - 14.09.2011, 20:30
Re: [HELP PLEEASE] calculating kilometers from a point - by [HiC]TheKiller - 14.09.2011, 20:59
Re: [HELP PLEEASE] calculating kilometers from a point - by TheArcher - 15.09.2011, 13:53

Forum Jump:


Users browsing this thread: 2 Guest(s)