Slimwaffle Posted March 20, 2015 Posted March 20, 2015 I was following the project Saturn tutorials on how to create an in game inventory. And I followed it doing exactly what he said but I get an error. 76 : attempt to index local 'currentItem' (a boolean value) Can someone please help? I'll attach the 2 scripts I am using. Also here are the links to the tutorial vids in case it helps. http://steamcommunity.com/sharedfiles/filedetails/?id=319799499 Inventory.lua InventoryItem.lua Quote
Jazz Posted March 20, 2015 Posted March 20, 2015 You are setting self.items = true which is boolean, instead of self.items = item 1 Quote --- Scott Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060
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.