Problem with textdraw box
#1

Hi guys. I got a problem with textdraw box, it's just going off the screen... Height is ok, but the width is much too big.

It looks like that:


My code:
pawn Код:
PlayerData[playerid][TD_Speedometer] = TextDrawCreate(512.000000, 357.000000, "Speed: 50 km/h ~n~test");
    TextDrawBackgroundColor(PlayerData[playerid][TD_Speedometer], 255);
    TextDrawFont(PlayerData[playerid][TD_Speedometer], 1);
    TextDrawLetterSize(PlayerData[playerid][TD_Speedometer], 0.340000, 1.600000);
    TextDrawColor(PlayerData[playerid][TD_Speedometer], -1);
    TextDrawSetOutline(PlayerData[playerid][TD_Speedometer], 0);
    TextDrawSetProportional(PlayerData[playerid][TD_Speedometer], 1);
    TextDrawSetShadow(PlayerData[playerid][TD_Speedometer], 1);
   
    PlayerData[playerid][TD_Speedometer_Bg] = TextDrawCreate(512.000000, 357.000000, "~n~~n~~n~~n~");
    TextDrawLetterSize(PlayerData[playerid][TD_Speedometer_Bg], 0.340000, 1.600000);
    TextDrawUseBox(PlayerData[playerid][TD_Speedometer_Bg],1);
    TextDrawBoxColor(PlayerData[playerid][TD_Speedometer_Bg], 0x00000044);
I need to do the text and the background in other textdraws, because many features will be added next. How can I fix the box's width?
Reply


Messages In This Thread
Problem with textdraw box - by xGoldenx - 29.10.2013, 14:18
Re: Problem with textdraw box - by HardRock - 29.10.2013, 14:40
Re: Problem with textdraw box - by xGoldenx - 29.10.2013, 14:45
Re: Problem with textdraw box - by Pottus - 29.10.2013, 14:58

Forum Jump:


Users browsing this thread: 1 Guest(s)