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

Elevator program problems

Started by pwajnkaim, 23 June 2013 - 07:31 AM
pwajnkaim #1
Posted 23 June 2013 - 09:31 AM
http://pastebin.com/yVC1Rv5E
I'm trying to create a redpower frame elevator using computers, unfortunately I get an error
bios:338: [string "elevator"]:2: '=' expected
when I delete the line I get the same error on line 14 as it has basically the same code on it
bios:338: [string "elevator"]:14: '=' expected
I realize it's telling me to put a = somewhere but I have no idea where. Also if I delete the 2 lines and start the program it simply ends.
I'm very new to coding and really have no idea what's wrong. All this program is supposed to do is check for redstone, detect what colours are being inputted and then assign some variables to numbers and pulse either the black cable or white cable.
Lyqyd #2
Posted 23 June 2013 - 08:57 PM
Split into new topic.
lucassouza1996 #3
Posted 23 June 2013 - 11:51 PM
Sorry for saying that, but almost everything is wrong…

I test you program in my computer and the problem is that you are put everything(almost) in the wrong sequence, eg.:

you put :
  • req - cur = uu

correct:

  • uu = req - cur


The thing is that you put in the wrong order, look after I fix it:


http://pastebin.com/jeE6Y16k