Flipi Posted September 1, 2013 Posted September 1, 2013 Hi, how to make a script to display the day?. help me please ...
Castillo Posted September 1, 2013 Posted September 1, 2013 What do you mean by "the day"? you mean the real day name? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
RainBow Posted September 1, 2013 Posted September 1, 2013 if you mean display the time you can do something like Local Displaytime = getTime ()
Flipi Posted September 1, 2013 Author Posted September 1, 2013 What do you mean by "the day"? you mean the real day name? yes (sunday, monday ....)
Castillo Posted September 1, 2013 Posted September 1, 2013 local weekdays = { [ 1 ] = "Sunday", [ 2 ] = "Monday", [ 3 ] = "Tuesday", [ 4 ] = "Wednesday", [ 5 ] = "Thursday", [ 6 ] = "Friday", [ 7 ] = "Saturday" } function getDayName ( ) local realTime = getRealTime ( ) return weekdays [ realTime.monthday ] end San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted September 1, 2013 Posted September 1, 2013 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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