SA-MP Forums Archive
Question about Textdraw - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question about Textdraw (/showthread.php?tid=88156)



Question about Textdraw - RyDeR` - 24.07.2009

Hello, I've a Textdraw with text in and also a box but sometimes is the box too small :S I want that the box with the textdraw increased and reduced anybody an idea how to do that??


Re: Question about Textdraw - yezizhu - 24.07.2009

strlen.
I don't know much about textdraw.
It maybe can set box size by strlen
Or don't use box


Re: Question about Textdraw - RyDeR` - 24.07.2009

Quote:
Originally Posted by yezizhu
strlen.
I don't know much about textdraw.
It maybe can set box size by strlen
Or don't use box
If you know a bit about strlen can you explain or explain better how please ?? No using boxes is a fact but I want boxes

*
Anybody else idea's or plan's, how to do that?


Re: Question about Textdraw - yezizhu - 24.07.2009


new
str[] = "blsblabla",
len = strlen(str);
TextDrawTextSize(text,2*len,2);

Just an example.


Re: Question about Textdraw - Joe Staff - 24.07.2009

That's not quite how it works. You have to use TextDrawTextSize to change the size of the box, I'm assuming you're using TextDrawAlignment because otherwise it would just make that entire row boxed in.


Re: Question about Textdraw - RyDeR` - 24.07.2009

Still not understaned Can you give an example please??


Re: Question about Textdraw - Joe Staff - 24.07.2009

pawn Код:
TextDrawTextSize(mytextdraw,50.0,0.0);
For one reason or another, the 'Y' (or height) parameter makes no change regardless of what you put in it. You would change the '50.0' number with what you need, it will take trial and error to find exactly what you need.


Re: Question about Textdraw - RyDeR` - 24.07.2009

Quote:
Originally Posted by Joe Staff
pawn Код:
TextDrawTextSize(mytextdraw,50.0,0.0);
For one reason or another, the 'Y' (or height) parameter makes no change regardless of what you put in it. You would change the '50.0' number with what you need, it will take trial and error to find exactly what you need.
Okйy thank you, I'll try to do..