TextDraw
#1

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
Reply
#2

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
Reply
#3

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
Reply
#4

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.
Reply
#5

And tell me how would i do it ? =_=
Reply
#6

https://sampwiki.blast.hk/wiki/Textdraw

=_=
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)