[FilterScript] Clock 3D in game
#7

It will just create a new 3D text label every second without destroying the older ones. Also it's wrong to use gettime() after format().
Actually you don't need ternary operators at all to generate this string. format() allows you to limit the amount of characters you want to use to display numbers as a string.

pawn Код:
format(string, sizeof string, "{00C0FF}%02d {F300FF}: {FFAF00}%02d {F300FF}: {F81414}%02d", hours, minutes, seconds);
By the way
pawn Код:
string[512]
is too huge and just wastes useful memory...
Reply


Messages In This Thread
Clock 3D in game - by sirvasy - 26.10.2013, 08:35
Re: Clock 3D in game - by Wizzy951 - 26.10.2013, 08:37
Re: Clock 3D in game - by coool - 26.10.2013, 09:45
Re: Clock 3D in game - by ragu1987 - 26.10.2013, 16:58
Re: Clock 3D in game - by HardRock - 26.10.2013, 17:07
Re: Clock 3D in game - by Hamam - 26.10.2013, 17:11
AW: Clock 3D in game - by BigETI - 26.10.2013, 17:12
Re: Clock 3D in game - by IstuntmanI - 26.10.2013, 18:04
Re: AW: Clock 3D in game - by Pottus - 26.10.2013, 18:33
Re: Clock 3D in game - by ragu1987 - 03.11.2013, 16:04

Forum Jump:


Users browsing this thread: 1 Guest(s)