Miki Romania Posted February 28, 2021 Posted February 28, 2021 Salut.Am facut un text draw care arata timpul dar nu se updateaza,ce sa fac function settime() { new string[256]; new year,month,day,hours,minutes,seconds; getdate(year, month, day), gettime(hours, minutes, seconds); format(string, sizeof string, "%s%d.%s%d.%s%d",((day < 10) ? ("0") : ("")), day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year); TextDrawSetString(DATA, string); format(string, sizeof(string), "%02d:%02d", hours+1, minutes); TextDrawSetString(TIMP, string); SetWorldTime(hours); TextDrawShowForAll(TIMP); TextDrawShowForAll(DATA); return 1; } https://imgur.com/sXXBGNl
0 S0NNIX Posted February 28, 2021 Posted February 28, 2021 Trebuie sa ii faci un timer care sa il faca se updateze.
Question
Miki Romania
Salut.Am facut un text draw care arata timpul dar nu se updateaza,ce sa fac
function settime() { new string[256]; new year,month,day,hours,minutes,seconds; getdate(year, month, day), gettime(hours, minutes, seconds); format(string, sizeof string, "%s%d.%s%d.%s%d",((day < 10) ? ("0") : ("")), day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year); TextDrawSetString(DATA, string); format(string, sizeof(string), "%02d:%02d", hours+1, minutes); TextDrawSetString(TIMP, string); SetWorldTime(hours); TextDrawShowForAll(TIMP); TextDrawShowForAll(DATA); return 1; }https://imgur.com/sXXBGNl
2 answers to this question
Recommended Posts