Scripting Moderators ds1-e Posted June 8, 2020 Scripting Moderators Share Posted June 8, 2020 13 minutes ago, enzoDs said: i need clear table, thanks Do you want clear table from memory, reset it or clear data for certain element? Link to comment
enzoDs Posted June 8, 2020 Author Share Posted June 8, 2020 tabla = {} function iniciar () for _, object in ipairs(aclGroupListObjects(aclGetGroup( "RSPD" )) or {}) do nombre = object:gsub("user.","") table.insert( tabla, nombre..", "..getJugadorPermiso(getAccount(nombre))..", "..getJugadorPuesto(getAccount(nombre))..", "..getJugadorSueldo(getAccount(nombre))) end return tabla end I need clear the table to so that every time the function is executed, no added elements are added (google translate english xd) Link to comment
Scripting Moderators ds1-e Posted June 8, 2020 Scripting Moderators Share Posted June 8, 2020 1 minute ago, enzoDs said: tabla = {} function iniciar () for _, object in ipairs(aclGroupListObjects(aclGetGroup( "RSPD" )) or {}) do nombre = object:gsub("user.","") table.insert( tabla, nombre..", "..getJugadorPermiso(getAccount(nombre))..", "..getJugadorPuesto(getAccount(nombre))..", "..getJugadorSueldo(getAccount(nombre))) end return tabla end I need clear the table to so that every time the function is executed, no added elements are added (google translate english xd) Just do: tabla = {} Before loop. 1 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