Jump to content

Table error


.:HyPeX:.

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...