Posted 19 January 2013 - 08:39 AM
the computer says bios:206; [string "startup"]:45: 'end' expected (to close 'if' at line 14) when i use this code
Can anyone tell me whats wrong?
x = yes
y = no
pullEvent =os.pullEventRaw
term.clear()
term.setCursorPos( 1,1)
print "========================="
print "BobMarleyCraftOS Beta 1.1"
print "========================="
print "Password: "
password = read()
pass = "poop"if password == (pass) then
sleep(2)
print("Welcome")
term.clear()
term.setCursorPos( 1,1 )
print "========================="
print "BobMarleyCraftOS Beta 1.1"
print "========================="
sleep(1)
print("View Programs")
input = read()
if input =="yes" then
print "-------------------"
print "Avaliable programs:"
print "-------------------"
sleep(1)
print "1.Meltdown"
sleep(1)
print "2.RPG Game"
sleep(1)
print "3.Rock Paper Scissors(RPS)"
sleep(1)
print "4.Other...."
else
print "Wrong Password"
sleep(1)
term.clear()
term.setCursorPos( 1,1 )
print "========================="
print "BobMarleyCraftOS Beta 1.1"
print "========================="
os.reboot()
end <-------------------line 45
Can anyone tell me whats wrong?