This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Lupus590's profile picture

[solved] attemp to index ? (a nil value)

Started by Lupus590, 24 April 2015 - 07:34 PM
Lupus590 #1
Posted 24 April 2015 - 09:34 PM
line ten of this errors with broken table
Edited on 28 September 2015 - 04:56 PM
Lyqyd #2
Posted 24 April 2015 - 10:06 PM
Shouldn't it just be crop.name and crop.metadata? And you may be better off using the name as the key of the table so you can directly index the desired metadata value for comparison.
Lupus590 #3
Posted 24 April 2015 - 10:58 PM
I had a feeling it was something simple, thanks lyqyd.
Edited on 24 April 2015 - 08:58 PM