TEXTDRAW: Box does not adjust to text
#8

Hi

I can help you, i'm also facing same problem before.

If you are going to set a TextDrawString with a Textdraw using box(true), then this problem occurs due to str or string or whatever variable are using.

Example Code: BAD
PHP Code:
new string[128] = "Hi I'm Textdraw";
TextDrawSetString(/*Your TextDraw Name*/,string); 
Then the problem of box not adjusting to text occurs because of your string lenght.

So, best way to solve this problem is do not use string, use your text directly.

Example Code: GOOD
PHP Code:
TextDrawSetString(/*Your TextDraw Name*/,"~r~Hi I'm Textdraw"); 
Thank You.
Reply


Messages In This Thread
TEXTDRAW: Box does not adjust to text - by MrakBuster - 14.06.2018, 12:52
Re: TEXTDRAW: Box does not adjust to text - by GTLS - 14.06.2018, 17:21
Re: TEXTDRAW: Box does not adjust to text - by Pottus - 14.06.2018, 17:23
Re: TEXTDRAW: Box does not adjust to text - by MrakBuster - 14.06.2018, 21:21
Re: TEXTDRAW: Box does not adjust to text - by Gammix - 14.06.2018, 22:28
Re: TEXTDRAW: Box does not adjust to text - by MrakBuster - 14.06.2018, 22:31
Re: TEXTDRAW: Box does not adjust to text - by MrakBuster - 14.06.2018, 22:41
Re: TEXTDRAW: Box does not adjust to text - by TadePoleMG - 15.06.2018, 04:37

Forum Jump:


Users browsing this thread: 1 Guest(s)