Problem with textdraw layer. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with textdraw layer. (
/showthread.php?tid=609686)
Problem with textdraw layer. -
Sjn - 15.06.2016
Erm... I am having this strange textdraw layer issue and tried every possible ways I could, but wasn't very helpful.
I have this speedometer textdraws where the text that displays the speed, state, fuel etc... is supposed to be in front of the fuel bar so the liters text would appear on top of the bar. I checked for the thread related to this issue and found
this thread. However, the solution in this thread doesn't seem to work for me. I tried creating the speedometer text before/after the bar, even swapped the variable and show function positions in the script but still, it's not working. Any idea what's going on?
I will post the code if needed.
Btw, I am using the progress bar include made by Southclaw.
Re: Problem with textdraw layer. -
F1N4L - 15.06.2016
Check the order of the create the TD's.
Ex:
createtd_1
createtd_2
The latter will be in front of the first
Re: Problem with textdraw layer. -
Sjn - 15.06.2016
Aha, while printing the textdraw IDs, I realized that the speedometer textdraws weren't playertext and progressbar uses the player one. After converting, it worked. Thanks for the idea though.