Posted 20 January 2017 - 09:03 PM
Hello,
the following code is ment to be an elevator program. It's written with expressions from Java (cause I don't know how these expressions look in lua and don't know if they exist in lua)
I want the program to make the elevator to go up then I push a button (top side and back of the computer) and go down when I push an other button (left side and right side of the computer)
when I try to run the Program I get an error:
bios:14: [string] "Elevator"]:1: ')' expected
Can someone tell me whats the issue in line 1? Are there any other issues you can se comming? Does this code work in lua anyway, or are these java-based expressions nonsense for lua?
Thanks a lot for your help ;-)
the following code is ment to be an elevator program. It's written with expressions from Java (cause I don't know how these expressions look in lua and don't know if they exist in lua)
I want the program to make the elevator to go up then I push a button (top side and back of the computer) and go down when I push an other button (left side and right side of the computer)
Spoiler
I want the programm running (even) then just one of the 4 buttons get acvitated. The elevator shall keep the redstonesignal online till a button for going down is activated. and keeping it offline till a button to going up is activated. The Redstonesignal the computer shall put out goes to 9 "extended Drawbridges" from "Tinkers' Mechworks"
when(rs.getInput("right") || rs.getInput("left")) = true {
rs.setOutput("bottom", false)
}
when(rs.getInput("top") || rs.getInput("back")) = true {
rs.setOutput("bottom", true)
}
when I try to run the Program I get an error:
bios:14: [string] "Elevator"]:1: ')' expected
Can someone tell me whats the issue in line 1? Are there any other issues you can se comming? Does this code work in lua anyway, or are these java-based expressions nonsense for lua?
Thanks a lot for your help ;-)
Edited on 20 January 2017 - 08:11 PM