SA-MP Forums Archive
[SOLVED]TextDrawUseBox question - 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: [SOLVED]TextDrawUseBox question (/showthread.php?tid=67845)



[SOLVED]TextDrawUseBox question - Dujma - 04.03.2009

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.


Re: TextDrawUseBox question - ғαιιοцт - 04.03.2009

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


Re: TextDrawUseBox question - Dujma - 04.03.2009

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


Re: TextDrawUseBox question - ғαιιοцт - 04.03.2009

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


Re: TextDrawUseBox question - Dujma - 04.03.2009

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


Re: TextDrawUseBox question - ғαιιοцт - 04.03.2009

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


Re: TextDrawUseBox question - Dujma - 04.03.2009

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


Re: [SOLVED]TextDrawUseBox question - ғαιιοцт - 05.03.2009

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


Re: [SOLVED]TextDrawUseBox question - Dujma - 05.03.2009

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