TextDraw - 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 (
/showthread.php?tid=585712)
TextDraw - TheLegend1 - 15.08.2015
Hey guys i created an Textdraw but its not working well.
TextDraw
Код HTML:
Textdraw4 = TextDrawCreate(544.799987, 368.106689, "Timee");
TextDrawLetterSize(Textdraw4, 0.449999, 1.600000);
TextDrawAlignment(Textdraw4, 1);
TextDrawColor(Textdraw4, -1);
TextDrawSetShadow(Textdraw4, 0);
TextDrawSetOutline(Textdraw4, 1);
TextDrawBackgroundColor(Textdraw4, 51);
TextDrawFont(Textdraw4, 1);
TextDrawSetProportional(Textdraw4, 1);
TextDraw String
Код HTML:
new strg[164];
format(strg, sizeof(strg), "%02d sec", 120-GetPVarInt(playerid, "robbingtime"));
TextDrawSetString(Textdraw4,strg);
Time Tested at GameText and works well at TextDraw time doesnt count down only stands 120seconds
Re: TextDraw -
UnDetectable - 16.08.2015
You have to create a timer which always decreases the time of the robbing time and updates the textdraw.
If you already have a timer
Just update your TextDraw every time the robbing time decreases
Re: TextDraw - TheLegend1 - 16.08.2015
That is not really going to work because if i show every textdraw at same time its going be a mess and its not any other way to show them so
Re: TextDraw -
UnDetectable - 16.08.2015
Quote:
Originally Posted by TheLegend1
That is not really going to work because if i show every textdraw at same time its going be a mess and its not any other way to show them so
|
You won't create/show a new one
You will update your current one.
Re: TextDraw - TheLegend1 - 16.08.2015
And tell me how would i do it ? =_=
Re: TextDraw -
Variable™ - 16.08.2015
https://sampwiki.blast.hk/wiki/Textdraw
=_=