• add time??
    4 replies, posted
Hello quick question how do i add time to something? im trying to add 60sec to my session time. actualy simple local would work i just dont know how to add time in lua it should look like this i guess: [lua] local sometime = os.time(60) [/lua] i know that this is wrong but you should know what im trying to do. result should be like this [lua] local sometime = os.time(60) local newtotal = prevtotal[1]["totaltime"] + sometime [/lua]
Uh, os.time() + 60?
I hope this adds only 60sec not whole os time and 60sec lol. will test and let you know if it worked. EDIT: ABORT ABORT THOUSANDS OF HOURS. it added whole os time +60 i need only 60sec. EDIT 2: it had to be like this [lua] local sometime = 60 [/lua] ikr..
Uh, local newtotal = prevtotal[1]["totaltime"] + 60 [editline]31st January 2014[/editline] Can you even math or something?
[QUOTE=Robotboy655;43739675]Uh, local newtotal = prevtotal[1]["totaltime"] + 60 [editline]31st January 2014[/editline] Can you even math or something?[/QUOTE] i can math i can't lua EDIT: btw thanks for help everyone finaly fixed my script.
Sorry, you need to Log In to post a reply to this thread.