[SOLVED]TextDrawUseBox question
#1

Does this supposed to look like this or you can set the width of the box or something makes the box like this?

http://i42.tinypic.com/r1ep09.jpg

I would want it to be like this

http://i39.tinypic.com/2qc4ad0.jpg

I have searched all wiki and forum and noone has this problem (if this is even a problem)

Here is the code

Код:
    ClothesTextDraw = TextDrawCreate(15.000000, 170.000000, "Use ~y~LMB ~w~and ~y~RMB ~n~~w~for clothes selection.~n~Press ~y~ENTER ~w~to buy clothes~n~or press ~y~LEFT SHIFT ~w~to~n~return to main menu.");
	TextDrawFont(ClothesTextDraw, 1);
	TextDrawLetterSize(ClothesTextDraw,0.499999,1.500000);
	TextDrawSetProportional(ClothesTextDraw, 1);
	TextDrawUseBox(ClothesTextDraw, 1);
	TextDrawBoxColor(ClothesTextDraw, 0x00000099);
I've tried this
Код:
    ClothesTextDraw = TextDrawCreate(15.000000, 170.000000, "Use ~y~LMB ~w~and ~y~RMB ~n~~w~for clothes selection.~n~Press ~y~ENTER ~w~to buy clothes~n~or press ~y~LEFT SHIFT ~w~to~n~return to main menu.");
	TextDrawUseBox(ClothesTextDraw, 1);
	TextDrawBoxColor(ClothesTextDraw, 0x00000099);
this

Код:
    ClothesTextDraw = TextDrawCreate(15.000000, 170.000000, "Use ~y~LMB ~w~and ~y~RMB ~n~~w~for clothes selection.~n~Press ~y~ENTER ~w~to buy clothes~n~or press ~y~LEFT SHIFT ~w~to~n~return to main menu.");
this

Код:
    ClothesTextDraw = TextDrawCreate(15.000000, 170.000000, "Test.");

and it is the same. The box is stretched to the right side.
Reply
#2

https://sampwiki.blast.hk/wiki/TextDrawTextSize

TextDrawTextSize(Text:text, Float, Float:y)

Float:y can be even 0.0000 because it won't change, it just adjusts to the lettersize
Reply
#3

Quote:
Originally Posted by °ғαιιοцт°
TextdrawLetterSize();
And what should I do with that?
I've tried to remove that and it is the same thing.
Reply
#4

Quote:
Originally Posted by Dujma
Quote:
Originally Posted by °ғαιιοцт°
TextdrawLetterSize();
And what should I do with that?
I've tried to remove that and it is the same thing.
sorry I edited the post, i was wrong first
Reply
#5

Quote:
Originally Posted by °ғαιιοцт°
Quote:
Originally Posted by Dujma
Quote:
Originally Posted by °ғαιιοцт°
TextdrawLetterSize();
And what should I do with that?
I've tried to remove that and it is the same thing.
sorry I edited the post, i was wrong first
Thank you very much
Reply
#6

Quote:
Originally Posted by Dujma
Quote:
Originally Posted by °ғαιιοцт°
Quote:
Originally Posted by Dujma
Quote:
Originally Posted by °ғαιιοцт°
TextdrawLetterSize();
And what should I do with that?
I've tried to remove that and it is the same thing.
sorry I edited the post, i was wrong first
Thank you very much
oh and I'm not sure if the Y value matters, you should test it out
Reply
#7

Quote:
Originally Posted by °ғαιιοцт°
Quote:
Originally Posted by Dujma
Quote:
Originally Posted by °ғαιιοцт°
Quote:
Originally Posted by Dujma
Quote:
Originally Posted by °ғαιιοцт°
TextdrawLetterSize();
And what should I do with that?
I've tried to remove that and it is the same thing.
sorry I edited the post, i was wrong first
Thank you very much
oh and I'm not sure if the Y value matters, you should test it out
Yea the Y vaule does not matter. I just put 0 there.

http://i41.tinypic.com/294qtm1.jpg

Thank you
Reply
#8

ps 'press lmb and rmb for clothes selection'
wtf? can you select clothes? o.O
or are they just other skins?
Reply
#9

Quote:
Originally Posted by °ғαιιοцт°
ps 'press lmb and rmb for clothes selection'
wtf? can you select clothes? o.O
or are they just other skins?
Yea just skins but it is an RP server so it is RP to say clothes not skin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)