Strange behaviour in TextDraws
#1

Hi guys,

I'm creating my own trucking server and found something strange.
I set the description of the job (like: "Hauling Cement from Quarry Top to LS Construction Site") in a textdraw at the bottom of the screen.
This textdraw has a grey box drawn around it.
http://users.telenet.be/vge/download...ing_cement.jpg
This image shows the mission-description. It shows the loading location in red.
After the player enters the checkpoint, the textdraw should change to:
http://users.telenet.be/vge/downloads/Loaded_cement.jpg

I also added code to be able to show if the player has been overloaded, this would take the above string and just add "(OL)" to that.

But as there needs to be a space between the text and the (OL)-indication, I added the space after the original string (like: "Hauling Cement from Quarry Top to LS Construction Site ").
http://users.telenet.be/vge/download...ent_bugged.jpg

But whenever the player wasn't overloaded (the original missiontext was kept intact, confirmed with Print), the textdraw was empty and the grey bar was very thin.
Removing the space at the end was the fix to show the message again.

Is this normal or some bug in the textdraws?
When the textdraw ends with a space, the entire textdraw is empty?
Reply
#2

Anyone tested this?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)