09.02.2013, 18:09
I want to put clock in Create3DTextLabel, but does not work
Sorry for bad English!
Код:
new string11[256],year,month,day; new string21[256],hours,minutes,seconds; getdate(year, month, day), gettime(hours, minutes, seconds); format(string11, sizeof(string11), "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year); Create3DTextLabel(string11, 0xFFFF00FF, 2047.7760,1916.2606,16.2052, 25.0, 0, 1); format(string21, sizeof(string21), "%s%d:%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds); Create3DTextLabel(string21, 0xFFFF00FF, 2047.7760,1916.2606,16.4052, 25.0, 0, 1);