Textdraw problem - 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: Textdraw problem (
/showthread.php?tid=505988)
Textdraw problem -
Treyvan - 11.04.2014
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.
Re: Textdraw problem -
BroZeus - 11.04.2014
it is doing it because it written to do that
what u want to do with it??
Re: Textdraw problem -
Treyvan - 11.04.2014
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.
Re: Textdraw problem -
Hanuman - 11.04.2014
pawn Код:
PlayerTextDrawTextSize(playerid, Textdraw3[playerid], -24.380960, -10.239997);
I think it is becoz of this! Re- Edit ur TextSize.
Re: Textdraw problem -
Treyvan - 11.04.2014
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.