isa_Khamdan Posted January 16, 2014 Posted January 16, 2014 Hello , I am wondering how can I add Timers to a table and how can I kill them all in one time? Example local Timers = {}
Castillo Posted January 16, 2014 Posted January 16, 2014 local timers = { } -- Inserting a new timer to our table local timer = setTimer ( arguments ) table.insert ( timers, timer ) -- Killing all the timers: for index, timer in ipairs ( timers ) do if isTimer ( timer ) then killTimer ( timer ) end timers [ index ] = nil end San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted January 17, 2014 Posted January 17, 2014 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