.:HyPeX:. Posted March 30, 2014 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 My ingame nick is ~HyPeX~ BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager
Jaysds1 Posted March 30, 2014 Posted March 30, 2014 (edited) Messed up this... Edited March 30, 2014 by Guest My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
myonlake Posted March 30, 2014 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. If I helped you, please click the like button on the right Thanks!
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