how get textdrawtextsize? - 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)
+--- Thread: how get textdrawtextsize? (
/showthread.php?tid=332266)
how get textdrawtextsize? -
adri1 - 07.04.2012
I make a textdraw with the zamaroth`s textdraw editor, but I don`t no how get, TextDrawTextSize for click textdraw...
Код:
Textdraw1 = TextDrawCreate(524.000000, 201.000000, "1");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 3);
TextDrawTextSize(Textdraw1,350.0,12.9); // dont work
TextDrawLetterSize(Textdraw1, 0.350000, 1.299999);
TextDrawColor(Textdraw1, -1);
TextDrawSetSelectable(Textdraw1,1);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
in a command write: "SelectTextdraw(playerid,color);", now going to test, but doesn`t works...
sorry my bad english.
Re: how get textdrawtextsize? -
Manuel_P - 07.04.2012
Add TextDrawAlignment(Textdraw1, 2);
And TextDrawTextSize(Textdraw1, 5, 5);
To get the right textdrawtextsize you just have to try different values.