Karuzo Posted July 7, 2014 Share Posted July 7, 2014 Hey Guys, I need your help. I need to know the time which was set in the meta.xml as a setting. Like: I know how to get that time but where i stuck is the part with setting it as a time. Since setTime needs hour and minutes i have to get hour and minutes from that settings, I know i have to use a string.* function but i'm not that good into those functions. So could anyone of you help me ? Link to comment
MIKI785 Posted July 7, 2014 Share Posted July 7, 2014 I would use something like this: local time = split(get("resourceName.time"), ":") setTime(tonumber(time[1]), tonumber(time[2])) Link to comment
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