Slastraf Posted January 14, 2017 Share Posted January 14, 2017 When I fill a table with grid prefabs, I have two for loops in each other and this: table.insert(grid,gridPfb) System:Print(#grid) (#grid is the length of the table) It prints 100 times, each time its bigger,, because its being filled. But when I want to acces it from an other script , yes its a global table, like this: System:Print("STARTGRID : "..tostring(grid[1])) I get this in Output: STARTGRID : nil What could it be and how to fix it ? The length in runtime is also zero. Quote Link to comment Share on other sites More sharing options...
Rick Posted January 14, 2017 Share Posted January 14, 2017 Is gridPfb null? Check it once before populating. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.