Quote:
Originally Posted by ******
Have you ever heard of variables? If not you REALLY need to go and read the MOST BASIC introductions to coding in general.
|
Yes, sometime i'm just confused.
Quote:
Originally Posted by [HiC]TheKiller
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.
|
True, i know that %d is an integer and %f is a float. I thought that for knowing the point from a distance i needed a integer beacuse float is like 0.0.