17.08.2014, 11:41
Helo.
I got a little problem with my textdraws.
Every time one is created, it will disappear like shown in the video below.
https://www.youtube.com/watch?v=YRe_...ature=*********
Here's the code
at the top
here's the timer
and here's ongamemodeinit
I got a little problem with my textdraws.
Every time one is created, it will disappear like shown in the video below.
https://www.youtube.com/watch?v=YRe_...ature=*********
Here's the code
at the top
Код:
new Text:clock;
Код:
public TimerSec() { new hour, minute, sek, string[128]; gettime(hour, minute, sek); format(string, sizeof string, "%s%d:%s%d", (hour < 10) ? ("0") : (""), hour, (minute < 10) ? ("0") : (""), minute); TextDrawSetString(clock, string); foreach(new i : Player) { TextDrawShowForPlayer(i, clock); } return 1; }
Код:
clock = TextDrawCreate(547, 28, "_"); TextDrawFont(clock, 1); TextDrawLetterSize(clock, 0.4, 1.2); TextDrawColor(clock, 0xffffffff); TextDrawSetShadow(clock, 0); TextDrawSetOutline(clock, 1); TextDrawAlignment(clock, 0); TextDrawBackgroundColor(clock, 0x000000ff); TextDrawSetProportional(clock, 1);