Jump to content




I need help with My Control code!


  • You cannot reply to this topic
3 replies to this topic

#1 ExplodingVortex

  • New Members
  • 2 posts

Posted 23 October 2015 - 10: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.

#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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:

if input == "power" then

Likewise for all your other conditional checks.

#3 ExplodingVortex

  • New Members
  • 2 posts

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

#4 CaosTECH

  • Members
  • 131 posts
  • LocationIn your closet

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