Posted 18 September 2014 - 01:26 AM
os.loadAPI("button")
rednet.open("bottom")
local mon = peripheral.wrap("top")
function fillTable()
button.setTable("Mall", mall, 3,16,3,5)
button.setTable("Mall", mall, 3,16,7,9)
button.screen()
end
function getEvent()
event,side,x,y = os.pullEvent()
if event == "monitor_touch" then
button.checkxy(x,y)
end
end
function mall()
print("mall clicked")
rednet.send(5, "mall")
button.flash("Mall")
end
function n/a()
print("n/a clicked")
rednet.send(5, "n/a")
button.flash("N/A")
end
fillTable()
button.heading("Station")
while true do
getEvent()
end
Its states "bios:338: [string"trainScreen"]:24: '(' expected
I don't understand why or how to fix this please help. Thanks in advance
rednet.open("bottom")
local mon = peripheral.wrap("top")
function fillTable()
button.setTable("Mall", mall, 3,16,3,5)
button.setTable("Mall", mall, 3,16,7,9)
button.screen()
end
function getEvent()
event,side,x,y = os.pullEvent()
if event == "monitor_touch" then
button.checkxy(x,y)
end
end
function mall()
print("mall clicked")
rednet.send(5, "mall")
button.flash("Mall")
end
function n/a()
print("n/a clicked")
rednet.send(5, "n/a")
button.flash("N/A")
end
fillTable()
button.heading("Station")
while true do
getEvent()
end
Its states "bios:338: [string"trainScreen"]:24: '(' expected
I don't understand why or how to fix this please help. Thanks in advance