TextDrawSetString moving?? - 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: TextDrawSetString moving?? (
/showthread.php?tid=559681)
TextDrawSetString moving?? -
Supermaxultraswag - 24.01.2015
Hey, for example i got simple Textdraw with text "1234" . And then I set that textdraw string to 123456789 and textdraw changes his position(for example move to left). How do I make textdraw stay in one place when I set string?
Re: TextDrawSetString moving?? -
Supermaxultraswag - 25.01.2015
So, how?
AW: TextDrawSetString moving?? -
Nero_3D - 25.01.2015
Thats probably because you use align 2 - center
https://sampwiki.blast.hk/wiki/TextDrawAlignment
if you use align 1 than the left side of the textdraw wont move
if you use align 2 than the center wont move
if you use align 3 than the right side wont move
Re: TextDrawSetString moving?? -
Supermaxultraswag - 25.01.2015
I use align 1. But i dont want any side to move
AW: TextDrawSetString moving?? -
Nero_3D - 25.01.2015
If the string is bigger than before the textdraw need to extent, you can only fix one position
This should make it clear, left, center, right
1234
123456789
1234
123456789
1234
123456789
The actually position set by TextDrawCreate wont move as it is always where the fixed point is