Textdraw starts on new line after each space - 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: Textdraw starts on new line after each space (
/showthread.php?tid=628655)
Textdraw starts on new line after each space -
danielpalade - 12.02.2017
-- DELETED --
Re: Textdraw starts on new line after each space -
PowerPC603 - 12.02.2017
Your textdraw goes from x = 361 (position of the top-left corner as defined in CreatePlayerTextDraw) to x = 385 (right-corner as defined in PlayerTextDrawTextSize), making it 24 pixels wide.
You need to make it bigger by adjusting the x-coordinate of PlayerTextDrawTextSize.
If you used PlayerTextDrawUseBox with a value of 1 instead of 0, you can actually see how big (wide) it really is.
Even if you only set the height to 9.8 (the y-coordinate of PlayerTextDrawTextSize), it still stretches vertically when more text is being displayed on multiple rows.
Using a small width makes text appear on separate lines when there is a space in it.
Another bug:
PHP код:
PlayerTextDrawUseBox(playerid,PH[playerid][14], 0);
Shouldn't this be "[10]" instead of "[14]"?