.:HyPeX:. Posted March 1, 2014 Share Posted March 1, 2014 Hey guys, how can i know wich position of the table im looking at with a loop on a table? (it is filled up with table.insert) Link to comment
pa3ck Posted March 1, 2014 Share Posted March 1, 2014 for k, something in ipairs ( table ) do 'k' is the number, if you mean this. Link to comment
.:HyPeX:. Posted March 1, 2014 Author Share Posted March 1, 2014 for k, something in ipairs ( table ) do 'k' is the number, if you mean this. K is the position in table? Link to comment
pa3ck Posted March 1, 2014 Share Posted March 1, 2014 Its like for i = 1, 10 do 'i' gets +1 everytime the for loop is executed, same in the other for loop, 'k' always gets +1. So table[k] is the position you are looking at. Link to comment
.:HyPeX:. Posted March 1, 2014 Author Share Posted March 1, 2014 Um.. what about if we're talking about a table inside onClientRender? (For a dxDraw on every table element).. if i know wich pos im looking at, i can lower the draw in screen, thats what i need. 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