Vadlmok Posted February 25, 2019 Posted February 25, 2019 (edited) Hi. A bug with the feature? Year 119 shows local time = getRealTime() local hours = time.hour local minutes = time.minute local seconds = time.second local monthday = time.monthday local month = time.month local year = time.year local formattedTime = string.format("%04d-%02d-%02d %02d:%02d:%02d", year, month + 1, monthday, hours, minutes, seconds) outputChatBox(formattedTime, thePlayer,255,0,0,true) Use serverside Edited February 25, 2019 by Vadlmok
Mr.Loki Posted February 25, 2019 Posted February 25, 2019 The os.date() func has been enabled in mta so you can use that instead. os.date() -- returns a string of the current date os.date("*t") -- returns a table of the current date http://lua-users.org/wiki/OsLibraryTutorial
Vadlmok Posted February 25, 2019 Author Posted February 25, 2019 20 minutes ago, Mr.Loki said: The os.date() func has been enabled in mta so you can use that instead. os.date() -- returns a string of the current date os.date("*t") -- returns a table of the current date http://lua-users.org/wiki/OsLibraryTutorial Senq
Scripting Moderators thisdp Posted February 25, 2019 Scripting Moderators Posted February 25, 2019 (edited) +1900 since the year of computer starts from 1900 Edited February 25, 2019 by thisdp 1
China_Yann Posted February 27, 2019 Posted February 27, 2019 On 25/02/2019 at 23:38, thisdp said: +1900 since the year of computer starts from 1900 It's true. Please pay more attention to following information underneath the wiki page. year years since 1900 ignore this: @thisdp 灯泡活跃在各大论坛。
Scripting Moderators thisdp Posted February 27, 2019 Scripting Moderators Posted February 27, 2019 (edited) 6 hours ago, 669344682 said: It's true. Please pay more attention to following information underneath the wiki page. year years since 1900 ignore this: @thisdp 灯泡活跃在各大论坛。 what? wait a minute who are you? ah i know who are u now. Edited February 27, 2019 by thisdp
China_Yann Posted February 28, 2019 Posted February 28, 2019 5 hours ago, thisdp said: what? wait a minute who are you? ah i know who are u now. Your reputation is the highest level in Chinese.Love you bro !!!
Scripting Moderators thisdp Posted February 28, 2019 Scripting Moderators Posted February 28, 2019 4 minutes ago, 669344682 said: Your reputation is the highest level in Chinese.Love you bro !!! i am not a gay
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now