Posted 23 February 2015 - 07:55 PM
Can someone correct what i've done here and tell me how to avoid it?
function main()
term.clear()
pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos( 1,1)
print "WareHouseOS Alpha 1.1"
sleep(1)
print("Welcome!")
sleep(3)
write("Item: ")
end
end
main()
function searchdirt()
if item == (dirt) then
sleep(1)
print("Item Found")
sleep(1)
print("UA101")
searchdirt()
BTW im relatively new so sorry if this seems really simple
Thanks
function main()
term.clear()
pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos( 1,1)
print "WareHouseOS Alpha 1.1"
sleep(1)
print("Welcome!")
sleep(3)
write("Item: ")
end
end
main()
function searchdirt()
if item == (dirt) then
sleep(1)
print("Item Found")
sleep(1)
print("UA101")
searchdirt()
BTW im relatively new so sorry if this seems really simple
Thanks
Edited on 23 February 2015 - 07:02 PM