while working through the requirements to solve this i suddenly realised you would need to use GET_CHAR_COORDINATES to feed GET_DISTANCE_BETWEEN_COORDS_3D one set of the needed coords to obtain the distance, the problems are if GET_CHAR_COORDINATES works then no calculations need to be done, but if we want to do the calculations and we assume GET_CHAR_COORDINATES fails then the problem becomes impossible to solve, we need to find a new way to solve.
could we perhaps attach something to the player and then get the coords of that?
also given that GET_CHAR_COORDINATES fails does that mean that the car spawner (for example) also either fails or spawns a car in an unwanted place? if it doesn't fail such scripts perhaps it is possible to feed in the players coords (with no problems) to GET_DISTANCE_BETWEEN_COORDS_3D and therefore get the distance do the calculations and then eventually get the coords we started with.
hmm.. its starting to look like the functions that display the numbers on screen are having problems??? if that is the problem it should be easy to solve
edit: and i was having fun with the maths until this revelation
@three-socks did you try feeeding a number lower than -1000 to draw_float??
if draw_float is the problem there a programming technique known as typecasting in which a variables type is changed to another type so we could recast a float as a string and that should avoid the potential problem with draw_float
i have found some potentially usefull functions:
GET_OFFSET_FROM_CHAR_IN_WORLD_COORDS and documentation link
http://www.gtamodding.com/index.php?...N_WORLD_COORDS
GET_OFFSET_FROM_CAR_IN_WORLD_COORDS and documentation link http://www.gtamodding.com/index.php?...N_WORLD_COORDS
GET_OFFSET_FROM_OBJECT_IN_WORLD_COORDS couldn't fimd documentation

