Wysłany: 2017-04-21, 22:17
saller123
Dopiero się ucze ;)
Wiek: 25 Na forum: 4680 dni Posty: 95
Nick w MP: Davitek
Piwa : 212
Witam, mam problem z wy?wietlaniem poprawnej realnej daty
Godzine pokazuje normalnie lecz pokazuje mi marzec zamiast kwietnia i rok 117...
Kto? wie ock?
local czas = getRealTime ()
dxDrawText ( string . format ( "%02d" , czas . hour ).. ":" .. string . format ( "%02d" , czas . minute ), screenW * 0.8610 , screenH * 0.0742 , screenW * 0.9721 , screenH * 0.1302 , tocolor ( 255 , 255 , 255 , 255 ), 1.80 , "pricedown" , "center" , "center" , false , false , false , false , false )
dxDrawRectangle ( screenW * 0.8500 , screenH * 0.1354 , screenW * 0.1353 , screenH * 0.0430 , tocolor ( 0 , 1 , 0 , 226 ), false )
dxDrawText ( string . format ( "%02d" , czas . monthday ).. "." .. string . format ( "%02d" , czas . month ).. "." .. czas . year , screenW * 0.8500 , screenH * 0.1354 , screenW * 0.9853 , screenH * 0.1784 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "pricedown" , "center" , "center" , false , false , false , false , false )
Wysłany: 2017-04-21, 22:21
_Haze
Peace Yo!
Wiek: 24 Na forum: 4184 dni Posty: 1648
Nick w MP: Haze
Piwa : 2628
local czas = getRealTime ()
dxDrawText ( string . format ( "%02d" , czas . hour ).. ":" .. string . format ( "%02d" , czas . minute ), screenW * 0.8610 , screenH * 0.0742 , screenW * 0.9721 , screenH * 0.1302 , tocolor ( 255 , 255 , 255 , 255 ), 1.80 , "pricedown" , "center" , "center" , false , false , false , false , false )
dxDrawRectangle ( screenW * 0.8500 , screenH * 0.1354 , screenW * 0.1353 , screenH * 0.0430 , tocolor ( 0 , 1 , 0 , 226 ), false )
dxDrawText ( string . format ( "%02d" , czas . monthday ).. "." .. string . format ( "%02d" , ( czas . month + 1 )).. "." ..( czas . year + 1900 ), screenW * 0.8500 , screenH * 0.1354 , screenW * 0.9853 , screenH * 0.1784 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "pricedown" , "center" , "center" , false , false , false , false , false )
Więcej szczegółów
Wystawiono 1 piw(a):saller123
Wysłany: 2017-04-21, 22:23
saller123
Dopiero się ucze ;)
Wiek: 25 Na forum: 4680 dni Posty: 95
Nick w MP: Davitek
Piwa : 212
"HazeMaFaze" napisał/a :
local czas = getRealTime ()
dxDrawText ( string . format ( "%02d" , czas . hour ).. ":" .. string . format ( "%02d" , czas . minute ), screenW * 0.8610 , screenH * 0.0742 , screenW * 0.9721 , screenH * 0.1302 , tocolor ( 255 , 255 , 255 , 255 ), 1.80 , "pricedown" , "center" , "center" , false , false , false , false , false )
dxDrawRectangle ( screenW * 0.8500 , screenH * 0.1354 , screenW * 0.1353 , screenH * 0.0430 , tocolor ( 0 , 1 , 0 , 226 ), false )
dxDrawText ( string . format ( "%02d" , czas . monthday ).. "." .. string . format ( "%02d" , ( czas . month + 1 )).. "." ..( czas . year + 1900 ), screenW * 0.8500 , screenH * 0.1354 , screenW * 0.9853 , screenH * 0.1784 , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "pricedown" , "center" , "center" , false , false , false , false , false )
Na to chyba bym nigdy nie wpad? :O
Dzi?ki za pomoc, leci !
Tagi: real :: time
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: