TEXTDRAW: Box does not adjust to text
#1

Hello,

I just recently downloaded the Zamaroth textdraw editor and I have experienced a problem. I am trying to create a infobox (information to player instead of dialog or chat message). But when I created a box, set alignment to left, I have set some text there, but the box did not adjust to the text.

So the text was just "hi", and the box remained big. How can I adjust it?

Thanks!
Reply
#2

You have to set, USE BOX with a Simple Text TextDraw.

https://sampwiki.blast.hk/wiki/TextDrawUseBox
Reply
#3

This textdraw editor is also very outdated and not recommended even iPELOMAX's editor is considerably outdated. There is currently only one textdraw editor that is fully up to do at this time.

https://sampforum.blast.hk/showthread.php?tid=543002
Reply
#4

Thank you very much for both of your advices!
Reply
#5

Quote:
Originally Posted by Pottus
View Post
This textdraw editor is also very outdated and not recommended even iPELOMAX's editor is considerably outdated. There is currently only one textdraw editor that is fully up to do at this time.

https://sampforum.blast.hk/showthread.php?tid=543002
https://sampforum.blast.hk/showthread.php?tid=642981
Reply
#6

Well, I just made a fool of myself, that editor from Pottus does not work. The plugin tde.dll does not start at any cost.

I will try the Gammix one now, thanks.
Reply
#7

Well, I guess, that I just wont make it.

The Gammix editor required so much includes, I got them all, but now the compilation is throwing sooo much errors. Cant compile.
Reply
#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


Forum Jump:


Users browsing this thread: 2 Guest(s)