31.05.2015, 10:48
no, like this:
so i read in wiki sa-mp and i do this:
but won't be change the size of Textdraw !
=================================
https://sampwiki.blast.hk/wiki/TextDrawTextSize | In tip:
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)
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);
pawn Код:
TextDrawHideForPlayer(playerid, TDFuel[playerid]);
TextDrawTextSizeT(TDFuel[playerid],VehFuel[GetPlayerVehicleID(playerid)], 10.000000);
TextDrawShowForPlayer(playerid,TDFuel[playerid]);
=================================
https://sampwiki.blast.hk/wiki/TextDrawTextSize | In tip:
PHP код:
If you want to change the text size of a textdraw that is already shown, you don't have
to recreate it.Simply use TextDrawShowForPlayer/TextDrawShowForAll after
modifying the textdraw and the change will be visible.