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.
I need help with My Control code!
Started by ExplodingVortex, Oct 23 2015 10:17 PM
3 replies to this topic
#1
Posted 23 October 2015 - 10:17 PM
#2
Posted 24 October 2015 - 12: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:
Likewise for all your other conditional checks.
That said, you could just delete that line, and switch line 34 to:
if input == "power" then
Likewise for all your other conditional checks.
#3
Posted 24 October 2015 - 11:37 AM
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
bios: 366: [string "startup"]: 71: '<eof>' expected
The new code is here: http://pastebin.com/1f1JpvHq
#4
Posted 25 October 2015 - 12: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
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











