26.04.2014, 13:11
Hi all.
Today i realized my new Speedo with Textdraws. It just displays one "I" for each 10 Km/h you do.
Here a preview: http://i.gyazo.com/d80095a9495a988f5c6d0fdcc8989476.png
The problem is that, sometimes, the Textdraw disappears. I costantly update it behind "OnPlayerUpdate(playerid)". There's a script which check, if player is in a vehicle, his speed and then it prints it out with the textdraw. I figured that the bug cames from OnPlayerUpdate, which updates player every second and this could bug the textdraws, but i don't know how to do better.
Any idea?
Today i realized my new Speedo with Textdraws. It just displays one "I" for each 10 Km/h you do.
Here a preview: http://i.gyazo.com/d80095a9495a988f5c6d0fdcc8989476.png
The problem is that, sometimes, the Textdraw disappears. I costantly update it behind "OnPlayerUpdate(playerid)". There's a script which check, if player is in a vehicle, his speed and then it prints it out with the textdraw. I figured that the bug cames from OnPlayerUpdate, which updates player every second and this could bug the textdraws, but i don't know how to do better.
Any idea?