.:HyPeX:. Posted March 30, 2014 Share Posted March 30, 2014 Well i dont know why i'm getting this error: error in line 3: attempt to index field '?' (a number value) (Note: its line 3 in this little code part) for i=1, 5 do for c=1, #Dashboard.rankings.data[Dashboard.rankings.current][i] do dxDrawText(Dashboard.rankings.data[Dashboard.rankings.current][i][1], x*0.58,y*0.20 + ((y*0.04) * i) , x, y, tocolor(255,255,255,255), 2/ ( ( 1360 / x ) * ( 768 / y ) ), "default-bold", "left", "top", false, false, true,true) dxDrawText(Dashboard.rankings.data[Dashboard.rankings.current][i][2], 0,y*0.20 + ((y*0.04) * i) , x*0.93, y, tocolor(255,255,255,255), 2/ ( ( 1360 / x ) * ( 768 / y ) ), "default-bold", "right", "top", false, false, true,true) end end Link to comment
Jaysds1 Posted March 30, 2014 Share Posted March 30, 2014 (edited) Messed up this... Edited March 30, 2014 by Guest Link to comment
myonlake Posted March 30, 2014 Share Posted March 30, 2014 No, Jay. That thing uses the incremented variable from the for-loop above it, so you can't put it outside of the for-loop. That simply means your ranking data doesn't have a field for index 1 or 2. Re-check your table keys. 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