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

monitor wont print variable

Started by SuperUnitato, 12 March 2016 - 10:32 PM
SuperUnitato #1
Posted 12 March 2016 - 11:32 PM
Ok so when i run the program on a computer it works until i tell it "monitor.write(x)" it says that it is trying to index a nil value. However i have already asked the user to give it a value. Not sure how to fix this.

http://pastebin.com/qSV8n3QN
Lyqyd #2
Posted 13 March 2016 - 12:17 AM
The variables "monitor" and "Monitor" are not the same thing.
SuperUnitato #3
Posted 13 March 2016 - 02:09 AM
The variables "monitor" and "Monitor" are not the same thing.
thanks for spotting that, but i still get the error attempt to index a nill value
Bomb Bloke #4
Posted 13 March 2016 - 03:26 AM
I'm still seeing miscapitalisations within the paste.