Posted 03 July 2013 - 02:25 PM
Alright i have a error in my code and i can't seem to fix it!
I get this error codr:12: Expected String, boolean
the code is in the spoiler
Please excuse the printBox's spaces it looks fine in game but not here?
i'm a noob at lua so i don't know what went wrong
I get this error codr:12: Expected String, boolean
the code is in the spoiler
Spoiler
-- Chest on Demand Revamped --
--Version information and legal stuff --
--[[ This is CoDR Version 0.1. You have the right to modify the code as you see fit. You cannot claim this code as your own.
You may use this in your projects anyway you see fit. You may not re-upload this code.]]
-- local functions --
function roomFront()
rs.setOutput("right", "true")
print("Please go to the front room and retreive or put your stuff in the chest.")
end
function printLogo()
term.clear()
term.setCursorPos(1,1)
term.setTextColor(colors.lime)
print(" ______ ____ ____ ")
print(" / ____/___ / __ \\/ __ \\")
print(" / / / __ \\/ / / / /_/ /")
print("/ /___/ /_/ / /_/ / _, _/ ")
print("\\____/\\____/_____/_/ |_| ")
term.setTextColor(colors.white)
end
function printBox()
term.clear()
term.setCursorPos(1,1)
print("_____________________________________________")
print("|Please Select a room to send the chest to |")
print("| [1] Front Room = right |")
print("| |")
print("| [2] Back Room = left |")
print("| |")
print("| [3] Storage = down |")
print("| |")
print("|___________________________________________|")
end
-- Code --
printLogo()
sleep(1)
print("Welcome to CoDR or Chest on Demand Revamped")
printBox()
local input = read()
if input == "1" then
roomFront()
end
Please excuse the printBox's spaces it looks fine in game but not here?
i'm a noob at lua so i don't know what went wrong