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

I need help with My Control code!

Started by ExplodingVortex, 23 October 2015 - 09:17 PM
ExplodingVortex #1
Posted 23 October 2015 - 11:17 PM
Hello,
So I have used computercraft a while back and made a base control that turend the power and my farms on and off with redstone but i cant find my code for that.
So i tryed to make it again but i just cant remember how todo it this is what i got so far.

http://pastebin.com/fAcTmbAc

i get error: bios: 366: [string "control"]: 11: '=' expected

Please can someone fix my code. or Help me.
Bomb Bloke #2
Posted 24 October 2015 - 01:03 AM
It's telling you that on your 11th line you've got an unexpected symbol, and it's suggesting you change it to an "=" sign.

That said, you could just delete that line, and switch line 34 to:

if input == "power" then

Likewise for all your other conditional checks.
ExplodingVortex #3
Posted 24 October 2015 - 12:37 PM
Ok my friend fixed that ive changed the code a bit since this and now i get this error:
bios: 366: [string "startup"]: 71: '<eof>' expected

The new code is here: http://pastebin.com/1f1JpvHq
CaosTECH #4
Posted 25 October 2015 - 01:02 AM
whenever it says '<eof>' expected it means that it didn't expect 'end' on that line, so if you were to remove the 'end' on line 71 it would fix the error