Textdraws disappearing
#1

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
Код:
new Text:clock;
here's the timer
Код:
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;
}
and here's ongamemodeinit
Код:
 	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);
Reply


Messages In This Thread
Textdraws disappearing - by tsonn1 - 17.08.2014, 11:41
Re: Textdraws disappearing - by MicroD - 17.08.2014, 11:46
Re: Textdraws disappearing - by Virtual1ty - 17.08.2014, 11:57
Re: Textdraws disappearing - by tsonn1 - 17.08.2014, 12:14

Forum Jump:


Users browsing this thread: 1 Guest(s)