Posted 01 September 2012 - 11:49 PM
Hi guys.
I've been playing around with ComputerCraft and trying my best to learn lua, but I've encountered a problem with a program I have been trying to write.
Basically, me and my friend were building a train line. At either end of the platform there is a detector track hooked up to a computer, which has a monitor on top of it. I'm trying to make a program that will display a message on the monitor when one detector is triggered and a different message when the second is triggered.
Here is what I've come up with:
[attachment=432:TrainDetector.txt]
The issue i'm having is that the computer expects an "=" on line 2. Any additional issues I am currently unaware of, however I came to the forums to ask all of you pros:
a) what i've done wrong and
:)/>/> if there is a better way of doing it than the way I am…
I know i'm not amazing, but I won't learn anything if I don't ask!
Thank you all for reading my shout out for help!
I've been playing around with ComputerCraft and trying my best to learn lua, but I've encountered a problem with a program I have been trying to write.
Basically, me and my friend were building a train line. At either end of the platform there is a detector track hooked up to a computer, which has a monitor on top of it. I'm trying to make a program that will display a message on the monitor when one detector is triggered and a different message when the second is triggered.
Here is what I've come up with:
[attachment=432:TrainDetector.txt]
The issue i'm having is that the computer expects an "=" on line 2. Any additional issues I am currently unaware of, however I came to the forums to ask all of you pros:
a) what i've done wrong and
:)/>/> if there is a better way of doing it than the way I am…
I know i'm not amazing, but I won't learn anything if I don't ask!
Thank you all for reading my shout out for help!