Textdraw problem
#1

Just a quick question really.

Why is this:

Код:
new PlayerText:Textdraw3[MAX_PLAYERS];

TDTEST(playerid)
{
	Textdraw3[playerid] = CreatePlayerTextDraw(playerid, 48.714324, 237.666778, "Model: 411");
	PlayerTextDrawLetterSize(playerid, Textdraw3[playerid], 0.277045, 1.305601);
	PlayerTextDrawTextSize(playerid, Textdraw3[playerid], -24.380960, -10.239997);
	PlayerTextDrawAlignment(playerid, Textdraw3[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw3[playerid], -1);
	PlayerTextDrawSetOutline(playerid, Textdraw3[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, Textdraw3[playerid], 255);
	PlayerTextDrawFont(playerid, Textdraw3[playerid], 1);
	PlayerTextDrawShow(playerid, Textdraw3[playerid]);
	return 1;
}
Doing this:



Any help would be appreciated.
Reply
#2

it is doing it because it written to do that
what u want to do with it??
Reply
#3

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
it is doing it because it written to do that
what u want to do with it??
in what way is it written to do that though. This was created with the textdraw editor that can be found Here.

And this is what the editor did:



Which is is correct.

So how is it written to be incorrect. It shouldn't be doing a new line unless told too and it's not written that way.

I want it to look like the above image it shows up fine with the editor, doesn't show up fine when it goes in the script. Which is strange because the same script was using the plugin/editor and it didn't do it during creation. In short I want all the text on a single line. Not two.
Reply
#4

pawn Код:
PlayerTextDrawTextSize(playerid, Textdraw3[playerid], -24.380960, -10.239997);
I think it is becoz of this! Re- Edit ur TextSize.
Reply
#5

That fixed it. Thanks a lot!

Somehow I forgot about the 'left side' rule when creating that textdraw. Also I totally skipped over TextDrawSize when trying to debug, it was carried over from a c/p :/

But yeah thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)