11.02.2014, 13:18
Quote:
Your checks to create the textlabels seem a bit odd.
pawn Код:
Even if you set them to 0, there is a chance due to binary limitations to represent floats accurately that those values won't be exactly 0.0000000000000... It could be -0.0000000000000000000001 and your code to create the textlabels won't work, as you only check if it's higher than 0, or exactly equal to 0. For any negative value (how small it may be), your textlabel won't be created and your textlabel won't show up as the labeltext is empty. You can try to use printf to print those values to the server console to see if there is any value negative. You can also print the labeltext to see if there is any business without a labeltext (which would explain why you don't see the label). pawn Код:
|
All business' work the way they are meant to in game, even though the interior check is equal to zero as opposed to 0.00000. The labels show in the correct format with the correct colors, except this one business. Which has an interior but it fails to show it. HOWEVER. As I was typing this, I just realized it only prints it if the coordinates are OVER 0.
The coordinates for that interior are in the negatives, making that the issue! You know! After this extensive trial and error. Without even testing it.. I think that is why it's having this issue.
It only shows a label for interiors with coordinates that are positive. Changing those to > 0 || < 0. Probably would be the best bet.. or > 0.0000000 || < 0.00000000 to be on the safe side.
Thank You! You're being repped! Appreciate the help, man!