Posted 19 April 2016 - 09:58 PM
So I can't figure out why it is doing this: bios:14: [string "startup"]:23: function arguments expected
I've put in "breakpoints" to try and isolate the problem and I can't figure out what is causing it.
I've put in "breakpoints" to try and isolate the problem and I can't figure out what is causing it.
local PullEvent = os.pullEvent;
os.pullEvent = os.pullEventRaw;
local Credentials = {"admin", "password"}
term.clear ();
term.setCursorPos (1, 1);
print ("Login System Version 1.2 Client to Client Mode Loaded");
print ("Please provide valid login credentials to continue...");
write ("Username: ");
local Username = read ();
write ("\nPassword: ");
local Password = read ("*");
if (Username == Credentials[1] and Password == Credentials[2]) then
write ("\nAccess Granted...");
sleep (0.25);
term.clear ();
term.setCursorPos (1, 1);
print ("Welcome "..Credentials[1].."!"):
os.pullEvent = PullEvent;
shell.setAlias ("cls", "clear");
else
write ("\nAccess Denied...");
sleep (0.25);
shell.run ("startup");
end