Posted 20 July 2017 - 06:59 AM
this is basically my first try at programming and the program is based off another i found heres the code i cant seem to get it to work
local color = colors.red
while true do
oldPull = os.pullEventRaw
term.clear()
term.setCursorPos(1,1)
term.setTextColor(color)
print("Zphone")
write("Username: ")
if read = "username" then
write(Password: ")
read("*") = "password" then
sleep(1)
term.clear()
term.setCursorPos(1,1)
else
print("Incorrect Login Details")
sleep()
print("Rebooting…")
sleep(1)
end
end
os.pullEvent = oldPull
know me this is probably horrible
local color = colors.red
while true do
oldPull = os.pullEventRaw
term.clear()
term.setCursorPos(1,1)
term.setTextColor(color)
print("Zphone")
write("Username: ")
if read = "username" then
write(Password: ")
read("*") = "password" then
sleep(1)
term.clear()
term.setCursorPos(1,1)
else
print("Incorrect Login Details")
sleep()
print("Rebooting…")
sleep(1)
end
end
os.pullEvent = oldPull
know me this is probably horrible