SA-MP Forums Archive
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=419279)



Textdraw problem - Ananisiki - 28.02.2013

^^^^^^^^


Re: Textdraw problem - DaRk_RaiN - 28.02.2013

You can do that by editing the Y dimension in the second textdraw, the one high lighted in red(385.706665), the smaller in gets the upper the textdraw is.
Код:
        Status[2] = TextDrawCreate(492.952392, 385.706665, "Vehicle:");
        TextDrawLetterSize(Status[2], 0.257999, 1.301334);
        TextDrawAlignment(Status[2], 1);
        TextDrawColor(Status[2], -1);
        TextDrawSetShadow(Status[2], 0);
        TextDrawSetOutline(Status[2], 1);
        TextDrawBackgroundColor(Status[2], 51);
        TextDrawFont(Status[2], 2);
        TextDrawSetProportional(Status[2], 1);
Try this
pawn Код:
public OnFilterScriptInit()
{
        SetTimer("OnSpeedoUpdate",1000,1); //Updates Speedo every 1 second

        SpeedBox = TextDrawCreate(631.714294, 332.166656, "usebox");
        TextDrawLetterSize(SpeedBox, 0.000000, 8.880372);
        TextDrawTextSize(SpeedBox, 484.857147, 0.000000);
        TextDrawAlignment(SpeedBox, 1);
        TextDrawColor(SpeedBox, 0);
        TextDrawUseBox(SpeedBox, true);
        TextDrawBoxColor(SpeedBox, 102);
        TextDrawSetShadow(SpeedBox, 0);
        TextDrawSetOutline(SpeedBox, 0);
        TextDrawFont(SpeedBox, 0);

        kmhSpeed = TextDrawCreate(492.571472, 334.080017, " ");
        TextDrawLetterSize(kmhSpeed, 0.326190, 1.493333);
        TextDrawAlignment(kmhSpeed, 1);
        TextDrawColor(kmhSpeed, -1);
        TextDrawSetShadow(kmhSpeed, 0);
        TextDrawSetOutline(kmhSpeed, 1);
        TextDrawBackgroundColor(kmhSpeed, 51);
        TextDrawFont(kmhSpeed, 2);
        TextDrawSetProportional(kmhSpeed, 1);

        Status[2] = TextDrawCreate(492.952392, 360.706665, "Vehicle:");
        TextDrawLetterSize(Status[2], 0.257999, 1.301334);
        TextDrawAlignment(Status[2], 1);
        TextDrawColor(Status[2], -1);
        TextDrawSetShadow(Status[2], 0);
        TextDrawSetOutline(Status[2], 1);
        TextDrawBackgroundColor(Status[2], 51);
        TextDrawFont(Status[2], 2);
        TextDrawSetProportional(Status[2], 1);

        print("Speedometer by Ryder_Ballaz loaded!");
        return 1;