ahmedo01 Posted January 24, 2015 Share Posted January 24, 2015 Hello All, First i have a problem A gui with editbox. When you put a code in textbox and ok button, it trivtriggers event and removes this code in xml and starts vip. today+30 days when it will be end but how? ex tried getRealTime ().yearday + 30 but if the date > 335 it gives error because for ex if date = 350 then 350+30 = 380 and it bugged Link to comment
.:HyPeX:. Posted January 25, 2015 Share Posted January 25, 2015 local time = getRealTime() local timestamp = time.timestamp local vipEND = timestamp + ( 1 * 60 * 60 * 24 * 30 ) Link to comment
ahmedo01 Posted January 25, 2015 Author Share Posted January 25, 2015 I will test it. Thx 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