well I'm doing a complicated one i guess or at least a little more fancy…
Error:
[string "Terminal" :73: '<eof>' expected]
Complete error line^^^^
Anyother help or condensing is welcome since it can be quite expanded due to the noobiness of myself….
Original Code: (Full of Errors)
Spoiler
--Unlocking Door Terminal
--Username
User = "Admin" --Set Desired Username
--Password
Pass = "Pass" --Set Desired Password
function clearload()
term.setCursorPos(1,2)
term.clear()
term.setCursorPos(1,1)
end
function clearall()
term.setCursorPos(1,1)
term.clear()
end
-- Running/ Turning on
clearall()
term.setCursorPos(15,1)
print ("{-- Terminal Lock V: 1.1 --}")
term.setCursorPos(1,3)
print ("Welcome User")
sleep(1.5) --Act likes its loading
term.setCursorPos(1,5)
print ("Loading....")
sleep(5)
term.setCursorPos(1,7)
print ("Loading Some Moar....")
sleep(5)
clearload()
term.setCursorPos(15,1)
print ("{-- Terminal Lock V: 1.1 --}")
--Entering in UserName and Password
print ("Enter Username")
read()
if input == "User" then
term.setCursorPos(1,3)
print ("Welcome, [User]")
term.setCursorPos(1,5)
print ("Enter Correct Password Please")
read()
if input == "Pass" then
term.setCursorPos(1,7)
print ("Correct...")
print ("Please Enter.")
sleep (2)
redstone.setOutput("back", true)
sleep (3)
redstone.setOutput("back", false)
else
print ("Incorrect Password")
sleep(1.5)
print ("Locking down terminal")
sleep(1)
print ("Goodbye")
sleep(1)
os.Reboot()
end
else
print ("Username not logged in system")
sleep (1.5)
print ("Locking down terminal")
sleep(1)
print ("Goodbye")
sleep(1)
os.Reboot()
end
end
end
New Code
Spoiler
--Unlocking Door Terminal
--Username
User = "Admin" --Set Desired Username
--Password
Pass = "Pass" --Set Desired Password
function clearload()
term.setCursorPos(1,2)
term.clear()
term.setCursorPos(1,1)
end
function clearall()
term.setCursorPos(1,1)
term.clear()
end
-- Running/ Turning on
clearall()
term.setCursorPos(15,1)
print ("{-- Terminal Lock V: 1.1 --}")
term.setCursorPos(1,3)
print ("Welcome User")
sleep(1.5) --Act likes its loading
term.setCursorPos(1,5)
print ("Loading....")
sleep(5)
term.setCursorPos(1,7)
print ("Loading Some Moar....")
sleep(5)
clearload()
term.setCursorPos(15,1)
print ("{-- Terminal Lock V: 1.1 --}")
--Entering in UserName and Password
print ("Enter Username")
read()
if input == User then
term.setCursorPos(1,3)
print ("Welcome, [User]")
term.setCursorPos(1,5)
print ("Enter Correct Password Please")
read()
if input == Pass then
term.setCursorPos(1,7)
print ("Correct...")
print ("Please Enter.")
sleep (2)
redstone.setOutput("back", true)
sleep (3)
redstone.setOutput("back", false)
else
print ("Incorrect Password")
sleep(1.5)
print ("Locking down terminal")
sleep(1)
print ("Goodbye")
sleep(1)
os.Reboot()
end
else
print ("Username not logged in system")
sleep (1.5)
print ("Locking down terminal")
sleep(1)
print ("Goodbye")
sleep(1)
os.Reboot()
end
And thanks to anyone who can help or will put input towards the code :D/>/>
[Edit]
Put new code in with fixes to the <eof> error