[HELP] Textdraw
#1

hi
i created a fuel system for my server.
for fuel textdraw i using Textdraw and TextSize, like a box ! fuel will be check every 1 sec and i wanna set TextSize with fuel but TextSize won't be change.
i read in wiki-samp, i must first TextSize for a Textdraw And Then Show it.
i do it but again, my Textdraw Not Work !
some one can do it with an example for me ?
thanks !
Reply
#2

UP !
Reply
#3

anyone?
Reply
#4

Shouldn't you destroy the textdraw, create a new one, set the box size and then show it?
Reply
#5

no, like this:
pawn Код:
// Create TextDraw in OnPlayerConnect ! this is not all code and this is example !
    TDFuel[playerid] = TextDrawCreate(200.000000, 200.000000, "LD_SPAC:white");
    TextDrawTextSize(TDFuel[playerid], 100.000000, 10.000000);
so i read in wiki sa-mp and i do this:
pawn Код:
TextDrawHideForPlayer(playerid, TDFuel[playerid]);
    TextDrawTextSizeT(TDFuel[playerid],VehFuel[GetPlayerVehicleID(playerid)], 10.000000);
    TextDrawShowForPlayer(playerid,TDFuel[playerid]);
but won't be change the size of Textdraw !
=================================
https://sampwiki.blast.hk/wiki/TextDrawTextSize | In tip:
PHP код:
If you want to change the text size of a textdraw that is already shownyou don't have
to recreate it.Simply use TextDrawShowForPlayer/TextDrawShowForAll after
modifying the textdraw and the change will be visible. 
and one thing ! if you wanna say "maybe fuel not get diminish " i must say, i create a command and i checked and work ! problem is from Textdraw. i don't know how to change the size of Textdraw (TextSize)
Reply
#6

I don't really know what you want,if the size it's not good,use ipleomax text draw editor and find the perfect size.
Reply
#7

Quote:
Originally Posted by PepsiCola23
Посмотреть сообщение
I don't really know what you want,if the size it's not good,use ipleomax text draw editor and find the perfect size.
i Mean I wanna change TextSize every Sec but it won't be change. !
Reply
#8

What do you mean change text size every second? can you explain more, we can't understand why you would want to change the size every second.
Reply
#9

Quote:
Originally Posted by DarkLored
Посмотреть сообщение
What do you mean change text size every second? can you explain more, we can't understand why you would want to change the size every second.
i wanna change TextSize for my fuel system !
look. my fuel system work with Sec so every sec change TextSize of Textdraw To set it with fuel !
Reply
#10

up !
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)