Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Float is NaN

$
0
0
Hello, I want to get the position above actor's head so I do this

new float:labelZ = ActorZ + 0.2000;

(ActorZ is 100 % correct because actor is spawned based on this variable)

when I do:

printf("Label: %f %f %f", ActorX, ActorY, labelZ);


the last value is NaN and the label is not displayed. Why could it be like that?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>