Posted 03 December 2012 - 09:39 AM
My code is as fallows (excuse the mess, i write inside the computer on minecraft)
–This is to build a tower
local floors = ""
local height = ""
local width = ""
–Have the user enter the height width and # of floors
term.clear()
term.write("How high would you like it?")
floors = read()
os.sleep(.1)
term.write("How wide would you like it?")
width = read()
os.sleep(.1)
print("So you want it .."height high and .."width wide?")
It runs until you enter two values, then returns a string error on the print() line.. Any help would be great, and sorry if this is a noob question.. I'm entirely new to any kind of programming.
–This is to build a tower
local floors = ""
local height = ""
local width = ""
–Have the user enter the height width and # of floors
term.clear()
term.write("How high would you like it?")
floors = read()
os.sleep(.1)
term.write("How wide would you like it?")
width = read()
os.sleep(.1)
print("So you want it .."height high and .."width wide?")
It runs until you enter two values, then returns a string error on the print() line.. Any help would be great, and sorry if this is a noob question.. I'm entirely new to any kind of programming.