This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
IAteUrPoptart's profile picture

Can Someone help me?

Started by IAteUrPoptart, 06 February 2014 - 08:27 AM
IAteUrPoptart #1
Posted 06 February 2014 - 09:27 AM
Dear Fellow Coders, I am have an issue with my computer craft…. I am running on the Tekkit Platform Minecraft 1.5.2 with craft Os 1.5 my issue is my code isnt working can someone help solve it?


-- Basic Start up Configuration--
local unlock = 1416
local edit = edit
local side = left
--User 1--
local user1 = ""
local pass1 = ""
--User 2--
local user2 = ""
local pass2 = ""
--User 3--
local user3 = ""
local pass3 = ""
--User 4--
local user4 = ""
local user5 = ""
-- Reset Up Configuration --
local setup = false --Set to false to reset system
-- DO NOT EDIT BELOW THIS LINE ---- DO NOT EDIT BELOW THIS LINE ---- DO NOT EDIT BELOW THIS LINE ---- DO NOT EDIT BELOW THIS LINE --
local t = 5
local pass = false
local v = "1.5b"
local run = false
local done = false
local userCheck = ""
local passCheck = ""
local c = ""
if setup == false then
term.clear()
term.setCursorPos(1,1)
print("Welcome To Poptarts Security Door")
term.setCursorPos(1,2)
print("Version:", v)
term.setCursorPos(1,3)
print("Lets Get Started")
sleep(5)
term.clear()
term.setCursorPos(1,1)
print("Please enter the following information for User 1")
term.setCursorPos(1,2)
write("Username: ")
user1 = user.input()
term.setCursorPos(1,3)
write("Password: ")
pass1 = user.input()
term.setCursorPos(1,1)
term.clear()
print("Processing...")
sleep(2)
term.clear()
term.setCursorPos(1,1)
sleep(5)
term.clear()
term.setCursorPos(1,1)
print("Please enter the following information for User 2")
term.setCursorPos(1,2)
write("Username: ")
user2 = user.input()
term.setCursorPos(1,3)
write("Password: ")
pass2 = user.input()
term.setCursorPos(1,1)
term.clear()
print("Processing...")
sleep(2)
term.clear()
term.setCursorPos(1,1)
sleep(5)
term.clear()
term.setCursorPos(1,1)
print("Please enter the following information for User 3")
term.setCursorPos(1,2)
write("Username: ")
user3 = user.input()
term.setCursorPos(1,3)
write("Password: ")
pass3 = user.input()
term.setCursorPos(1,1)
term.clear()
print("Processing...")
sleep(2)
term.clear()
term.setCursorPos(1,1)
  sleep(5)
term.clear()
term.setCursorPos(1,1)
print("Please enter the following information for User 4")
term.setCursorPos(1,2)
write("Username: ")
user4 = user.input()
term.setCursorPos(1,3)
write("Password: ")
pass4 = user.input()
term.setCursorPos(1,1)
term.clear()
print("Processing...")
sleep(2)
term.clear()
term.setCursorPos(1,1)
sleep(5)
term.clear()
term.setCursorPos(1,1)
print("Please enter the following information for User 5")
term.setCursorPos(1,2)
write("Username: ")
user5 = user.input()
term.setCursorPos(1,3)
write("Password: ")
pass5 = user.input()
term.setCursorPos(1,1)
term.clear()
print("Processing...")
sleep(2)
term.clear()
term.setCursorPos(1,1)
print("Set-up Complete")
sleep(2)
term.clear()
setup = true
end
while done == false do
term.clear()
term.setCurosorPos(1,1)
print("Setup Configured Now Booting")
term.setCursorPos(1,2)
print("Version: ", v)
sleep(2)
term.clear()
while run == false do
  redstone.setOutput(side, false)
  write("Username: ")
  userCheck = user.input()
  term.clear()
  if userCheck == user1 then
   write("Password: ")
   passCheck = user.Input()
   term.clear()
   if passCheck == pass1 then
    print("Access Granted")
    sleep(t)
    redstone.setOutput(side, true)
    term.clear()
   end
  end
  if userCheck == user2 then
   write("Password: ")
   passCheck = user.Input()
   term.clear()
   if passCheck == pass2 then
    print("Access Granted")
    sleep(t)
    redstone.setOutput(side, true)
    term.clear()
   end
  end
  if userCheck == user3 then
   write("Password: ")
   passCheck = user.Input()
   term.clear()
   if passCheck == pass3 then
    print("Access Granted")
    sleep(t)
    redstone.setOutput(side, true)
    term.clear()
   end
  end
  if userCheck == user4 then
   write("Password: ")
   passCheck = user.Input()
   term.clear()
   if passCheck == pass4 then
    print("Access Granted")
    sleep(t)
    redstone.setOutput(side, true)
    term.clear()
   end
  end
  if userCheck == user5 then
   write("Password: ")
   passCheck = user.Input()
   term.clear()
   if passCheck == pass5 then
    print("Access Granted")
    sleep(t)
    redstone.setOutput(side, true)
    term.clear()
   end
  end
  if userCheck == unlock then
   run = true
   done = true
  end
  if userCheck == edit then
   write("Enter the unlock password:")
   usercheck = user.input()
   if userCheck == unlock then
    term.clear()
    term.setCursorPos(1,1)
    print("For user 1-5 use numbers")
    term.setCursorPos(1,2)
    write("Enter the ID number in which you would like to edit: ")
    c = user.input()
    if c == 1 then
	 term.clear()
	 term.setCursorPos(1,1)
	 print("Please enter the following information for User 1")
	 term.setCursorPos(1,2)
	 write("Username: ")
	 user1 = user.input()
	 term.setCursorPos(1,3)
	 write("Password: ")
	 pass1 = user.input()
	 term.setCursorPos(1,1)
	 term.clear()
	 print("Processing...")
	 sleep(2)
	 term.clear()
    end
    if c == 2 then
	 term.clear()
	 term.setCursorPos(1,1)
	 print("Please enter the following information for User 2")
	 term.setCursorPos(1,2)
	 write("Username: ")
	 user2 = user.input()
	 term.setCursorPos(1,3)
	 write("Password: ")
	 pass2 = user.input()
	 term.setCursorPos(1,1)
	 term.clear()
	 print("Processing...")
	 sleep(2)
	 term.clear()
    end
    if c == 3 then
	 term.clear()
	 term.setCursorPos(1,1)
	 print("Please enter the following information for User 3")
	 term.setCursorPos(1,2)
	 write("Username: ")
	 user3 = user.input()
	 term.setCursorPos(1,3)
	 write("Password: ")
	 pass3 = user.input()
	 term.setCursorPos(1,1)
	 term.clear()
	 print("Processing...")
	 sleep(t)
	 term.clear()
    end
    if c == 4 then
	 term.clear()
	 term.setCursorPos(1,1)
	 print("Please enter the following information for User 4")
	 term.setCursorPos(1,2)
	 write("Username: ")
	 user4 = user.input()
	 term.setCursorPos(1,3)
	 write("Password: ")
	 pass4 = user.input()
	 term.setCursorPos(1,1)
	 term.clear()
	 print("Processing...")
	 sleep(t)
	 term.clear()
    end
    if c == 5 then
	 term.clear()
	 term.setCursorPos(1,1)
	 print("Please enter the following information for User 5")
	 term.setCursorPos(1,2)
	 write("Username: ")
	 user5 = user.input()
	 term.setCursorPos(1,3)
	 write("Password: ")
	 pass5 = user.input()
	 term.setCursorPos(1,1)
	 term.clear()
	 print("Processing...")
	 sleep(t)
	 term.clear()
    end
    if c == "side" then
	 term.clear()
	 term.setCursorPos(1,1)
	 print("Please Enter the output side")
	 term.setCursorPos(1,2)
	 write("Side: ")
	 side = user.input()
	 term.setCursorPos(1,3)
	 print("Testing...")
	 term.clear()
	 term.setCursorPos(1,1)
	 redstone.output(side, true)
	 sleep(t)
	 redstone.output(side,false)
    end
    if c == "Time" then
	 term.clear()
	 term.setCursorPos(1,1)
	 print("Please enter the open time in Seconds")
	 term.setCursorPos(1,2)
	 write("Seconds: ")
	 t = user.input()
    end
   end
  end
end
end
Lyqyd #2
Posted 06 February 2014 - 10:36 AM
Moved to Ask a Pro.
Csstform #3
Posted 06 February 2014 - 10:45 AM
What error do you recive and where?
6677 #4
Posted 06 February 2014 - 12:22 PM
Both lines 2 and 3 are errors so not off to a great start.

local edit = edit


Well you havent defined edit yet so this will error immediately.

Followed by:
local side = left

left also hasnt been defined.
IAteUrPoptart #5
Posted 06 February 2014 - 02:31 PM
So the point of my script is have a security door with full setup when not setup and the ability to not be able to reset without the user password. I also want to deny disk drives as a choice of boot up for the start up file. This Security door has 5 users. and is able to be edited by the word or keyword described in setup this will also require the unlock password here is the revised code.


-- Basic Start up Configuration--
local unlock = 1416
local e = "edit"
local side = "left"
--User 1--
local user1 = ""
local pass1 = ""
--User 2--
local user2 = ""
local pass2 = ""
--User 3--
local user3 = ""
local pass3 = ""
--User 4--
local user4 = ""
local user5 = ""
-- Reset Up Configuration --
local setup = false --Set to false to reset system
-- DO NOT EDIT BELOW THIS LINE ---- DO NOT EDIT BELOW THIS LINE ---- DO NOT EDIT BELOW THIS LINE ---- DO NOT EDIT BELOW THIS LINE --
local t = 5
local pass = false
local v = "1.5b"
local run = false
local done = false
local userCheck = ""
local passCheck = ""
local c = ""
if setup == false then
term.clear()
term.setCursorPos(1,1)
print("Welcome To Poptarts Security Door")
term.setCursorPos(1,2)
print("Version:", v)
term.setCursorPos(1,3)
print("Lets Get Started")
sleep(5)
term.clear()
term.setCursorPos(1,1)
print("Please enter the following information for User 1")
term.setCursorPos(1,2)
write("Username: ")
user1 = user.input()
term.setCursorPos(1,3)
write("Password: ")
pass1 = user.input()
term.setCursorPos(1,1)
term.clear()
print("Processing...")
sleep(2)
term.clear()
term.setCursorPos(1,1)
sleep(5)
term.clear()
term.setCursorPos(1,1)
print("Please enter the following information for User 2")
term.setCursorPos(1,2)
write("Username: ")
user2 = user.input()
term.setCursorPos(1,3)
write("Password: ")
pass2 = user.input()
term.setCursorPos(1,1)
term.clear()
print("Processing...")
sleep(2)
term.clear()
term.setCursorPos(1,1)
sleep(5)
term.clear()
term.setCursorPos(1,1)
print("Please enter the following information for User 3")
term.setCursorPos(1,2)
write("Username: ")
user3 = user.input()
term.setCursorPos(1,3)
write("Password: ")
pass3 = user.input()
term.setCursorPos(1,1)
term.clear()
print("Processing...")
sleep(2)
term.clear()
term.setCursorPos(1,1)
  sleep(5)
term.clear()
term.setCursorPos(1,1)
print("Please enter the following information for User 4")
term.setCursorPos(1,2)
write("Username: ")
user4 = user.input()
term.setCursorPos(1,3)
write("Password: ")
pass4 = user.input()
term.setCursorPos(1,1)
term.clear()
print("Processing...")
sleep(2)
term.clear()
term.setCursorPos(1,1)
sleep(5)
term.clear()
term.setCursorPos(1,1)
print("Please enter the following information for User 5")
term.setCursorPos(1,2)
write("Username: ")
user5 = user.input()
term.setCursorPos(1,3)
write("Password: ")
pass5 = user.input()
term.setCursorPos(1,1)
term.clear()
print("Processing...")
sleep(2)
term.clear()
term.setCursorPos(1,1)
print("Set-up Complete")
sleep(2)
term.clear()
setup = true
end
while done == false do
term.clear()
term.setCurosorPos(1,1)
print("Setup Configured Now Booting")
term.setCursorPos(1,2)
print("Version: ", v)
sleep(2)
term.clear()
while run == false do
  redstone.setOutput(side, false)
  write("Username: ")
  userCheck = user.input()
  term.clear()
  if userCheck == user1 then
   write("Password: ")
   passCheck = user.Input()
   term.clear()
   if passCheck == pass1 then
    print("Access Granted")
    sleep(t)
    redstone.setOutput(side, true)
    term.clear()
   end
  end
  if userCheck == user2 then
   write("Password: ")
   passCheck = user.Input()
   term.clear()
   if passCheck == pass2 then
    print("Access Granted")
    sleep(t)
    redstone.setOutput(side, true)
    term.clear()
   end
  end
  if userCheck == user3 then
   write("Password: ")
   passCheck = user.Input()
   term.clear()
   if passCheck == pass3 then
    print("Access Granted")
    sleep(t)
    redstone.setOutput(side, true)
    term.clear()
   end
  end
  if userCheck == user4 then
   write("Password: ")
   passCheck = user.Input()
   term.clear()
   if passCheck == pass4 then
    print("Access Granted")
    sleep(t)
    redstone.setOutput(side, true)
    term.clear()
   end
  end
  if userCheck == user5 then
   write("Password: ")
   passCheck = user.Input()
   term.clear()
   if passCheck == pass5 then
    print("Access Granted")
    sleep(t)
    redstone.setOutput(side, true)
    term.clear()
   end
  end
  if userCheck == unlock then
   run = true
   done = true
  end
  if userCheck == e then
   write("Enter the unlock password:")
   usercheck = user.input()
   if userCheck == unlock then
    term.clear()
    term.setCursorPos(1,1)
    print("For user 1-5 use numbers")
    term.setCursorPos(1,2)
    write("Enter the ID number in which you would like to edit: ")
    c = user.input()
    if c == 1 then
	 term.clear()
	 term.setCursorPos(1,1)
	 print("Please enter the following information for User 1")
	 term.setCursorPos(1,2)
	 write("Username: ")
	 user1 = user.input()
	 term.setCursorPos(1,3)
	 write("Password: ")
	 pass1 = user.input()
	 term.setCursorPos(1,1)
	 term.clear()
	 print("Processing...")
	 sleep(2)
	 term.clear()
    end
    if c == 2 then
	 term.clear()
	 term.setCursorPos(1,1)
	 print("Please enter the following information for User 2")
	 term.setCursorPos(1,2)
	 write("Username: ")
	 user2 = user.input()
	 term.setCursorPos(1,3)
	 write("Password: ")
	 pass2 = user.input()
	 term.setCursorPos(1,1)
	 term.clear()
	 print("Processing...")
	 sleep(2)
	 term.clear()
    end
    if c == 3 then
	 term.clear()
	 term.setCursorPos(1,1)
	 print("Please enter the following information for User 3")
	 term.setCursorPos(1,2)
	 write("Username: ")
	 user3 = user.input()
	 term.setCursorPos(1,3)
	 write("Password: ")
	 pass3 = user.input()
	 term.setCursorPos(1,1)
	 term.clear()
	 print("Processing...")
	 sleep(t)
	 term.clear()
    end
    if c == 4 then
	 term.clear()
	 term.setCursorPos(1,1)
	 print("Please enter the following information for User 4")
	 term.setCursorPos(1,2)
	 write("Username: ")
	 user4 = user.input()
	 term.setCursorPos(1,3)
	 write("Password: ")
	 pass4 = user.input()
	 term.setCursorPos(1,1)
	 term.clear()
	 print("Processing...")
	 sleep(t)
	 term.clear()
    end
    if c == 5 then
	 term.clear()
	 term.setCursorPos(1,1)
	 print("Please enter the following information for User 5")
	 term.setCursorPos(1,2)
	 write("Username: ")
	 user5 = user.input()
	 term.setCursorPos(1,3)
	 write("Password: ")
	 pass5 = user.input()
	 term.setCursorPos(1,1)
	 term.clear()
	 print("Processing...")
	 sleep(t)
	 term.clear()
    end
    if c == "side" then
	 term.clear()
	 term.setCursorPos(1,1)
	 print("Please Enter the output side")
	 term.setCursorPos(1,2)
	 write("Side: ")
	 side = user.input()
	 term.setCursorPos(1,3)
	 print("Testing...")
	 term.clear()
	 term.setCursorPos(1,1)
	 redstone.output(side, true)
	 sleep(t)
	 redstone.output(side,false)
    end
    if c == "Time" then
	 term.clear()
	 term.setCursorPos(1,1)
	 print("Please enter the open time in Seconds")
	 term.setCursorPos(1,2)
	 write("Seconds: ")
	 t = user.input()
    end
   end
  end
end
end

I have also changed the redstone.output(side, left) to redstone.setOutput(side, left)
CaseyRobinson #6
Posted 06 February 2014 - 05:36 PM
I'd like to help you with a more general problem before we look at specific problems. You aren't using for loops or tables where you should be, and it makes your code five times longer than it should be. You're more likely to get help if your code is concise and doesn't feel like a wall of text.

I'd recommend reading these tutorials:
http://www.computercraft.info/forums2/index.php?/topic/15760-how-to-use-tables/
http://www.computercraft.info/forums2/index.php?/topic/14744-tables-or-storing-multiple-variables/
http://www.computercraft.info/forums2/index.php?/topic/7999-loops/
http://www.computercraft.info/forums2/index.php?/topic/5556-eight-good-coding-habits/

In addition, you haven't told us what the problem is. Where does it fail? What error messages do you get? What have you tried to do to fix it?
IAteUrPoptart #7
Posted 06 February 2014 - 07:41 PM
I know my code is way over sized then what it needs to be but i don't really care about how compact it is. I know its hard to read but im doing my best to make it this way so other people can edit it more easily This code is more for a tutorial video i want to do explaining the works of the code and how to use each statement properly but even mine seem to be broken.

This is what i get when i run it into a computer: bios:337 [string "Security_Door_v3b"] : 123 : unexpected symbol
but when i look on line 123 which is

while done == false do
I cant seem to find what is wrong == to compare if i remeber correctly. I will take in consideration the links you sent me from before Casy

Thanks For Your Guys Help!
surferpup #8
Posted 17 February 2014 - 06:42 PM
  1. indent your code so it makes sense. Your code is unreadable when you don't – especially for purposes of a tutorial.
  2. use elseif in your chains of if statements.
  3. what is your function user.input() – it does not exist in your code. I assume it is supposed to be a read(). I have changed it to get your code to work.
  4. line 123 – spelled Cursor wrong. Should be term.setCursorPos(1,1)
With that, I can get your code to run. What you are trying to do is beyond me.

Corrected Code:

-- Basic Start up Configuration--
local unlock = 1416
local e = "edit"
local side = "left"
--User 1--
local user1 = ""
local pass1 = ""
--User 2--
local user2 = ""
local pass2 = ""
--User 3--
local user3 = ""
local pass3 = ""
--User 4--
local user4 = ""
local user5 = ""
-- Reset Up Configuration --
local setup = false --Set to false to reset system
-- DO NOT EDIT BELOW THIS LINE ---- DO NOT EDIT BELOW THIS LINE ---- DO NOT EDIT BELOW THIS LINE ---- DO NOT EDIT BELOW THIS LINE --
local t = 5
local pass = false
local v = "1.5b"
local run = false
local done = false
local userCheck = ""
local passCheck = ""
local c = ""
if setup == false then
	term.clear()
	term.setCursorPos(1,1)
	print("Welcome To Poptarts Security Door")
	term.setCursorPos(1,2)
	print("Version:", v)
	term.setCursorPos(1,3)
	print("Lets Get Started")
	sleep(5)
	term.clear()
	term.setCursorPos(1,1)
	print("Please enter the following information for User 1")
	term.setCursorPos(1,2)
	write("Username: ")
	user1 = read()
	term.setCursorPos(1,3)
	write("Password: ")
	pass1 = read()
	term.setCursorPos(1,1)
	term.clear()
	print("Processing...")
	sleep(2)
	term.clear()
	term.setCursorPos(1,1)
	sleep(5)
	term.clear()
	term.setCursorPos(1,1)
	print("Please enter the following information for User 2")
	term.setCursorPos(1,2)
	write("Username: ")
	user2 = read()
	term.setCursorPos(1,3)
	write("Password: ")
	pass2 = read()
	term.setCursorPos(1,1)
	term.clear()
	print("Processing...")
	sleep(2)
	term.clear()
	term.setCursorPos(1,1)
	sleep(5)
	term.clear()
	term.setCursorPos(1,1)
	print("Please enter the following information for User 3")
	term.setCursorPos(1,2)
	write("Username: ")
	user3 = read()
	term.setCursorPos(1,3)
	write("Password: ")
	pass3 = read()
	term.setCursorPos(1,1)
	term.clear()
	print("Processing...")
	sleep(2)
	term.clear()
	term.setCursorPos(1,1)
	--  sleep(5)
	term.clear()
	term.setCursorPos(1,1)
	print("Please enter the following information for User 4")
	term.setCursorPos(1,2)
	write("Username: ")
	user4 = read()
	term.setCursorPos(1,3)
	write("Password: ")
	pass4 = read()
	term.setCursorPos(1,1)
	term.clear()
	print("Processing...")
	sleep(2)
	term.clear()
	term.setCursorPos(1,1)
	sleep(5)
	term.clear()
	term.setCursorPos(1,1)
	print("Please enter the following information for User 5")
	term.setCursorPos(1,2)
	write("Username: ")
	user5 = read()
	term.setCursorPos(1,3)
	write("Password: ")
	pass5 = read()
	term.setCursorPos(1,1)
	term.clear()
	print("Processing...")
	sleep(2)
	term.clear()
	term.setCursorPos(1,1)
	print("Set-up Complete")
	sleep(2)
	term.clear()
	setup = true
end
while done == false do
	term.clear()
	term.setCursorPos(1,1)
	print("Setup Configured Now Booting")
	term.setCursorPos(1,2)
	print("Version: ", v)
	sleep(2)
	term.clear()
	while run == false do
		redstone.setOutput(side, false)
		write("Username: ")
		userCheck = read()
		term.clear()
		if userCheck == user1 then
			write("Password: ")
			passCheck = read()
			term.clear()
			if passCheck == pass1 then
				print("Access Granted")
				sleep(t)
				redstone.setOutput(side, true)
				term.clear()
			end
		elseif userCheck == user2 then
			write("Password: ")
			passCheck = read()
			term.clear()
			if passCheck == pass2 then
				print("Access Granted")
				sleep(t)
				redstone.setOutput(side, true)
				term.clear()
			end
		elseif userCheck == user3 then
			write("Password: ")
			passCheck = read()
			term.clear()
			if passCheck == pass3 then
				print("Access Granted")
				sleep(t)
				redstone.setOutput(side, true)
				term.clear()
			end
		elseif userCheck == user4 then
			write("Password: ")
			passCheck = read()
			term.clear()
			if passCheck == pass4 then
				print("Access Granted")
				sleep(t)
				redstone.setOutput(side, true)
				term.clear()
			end
		elseif userCheck == user5 then
			write("Password: ")
			passCheck = read()
			term.clear()
			if passCheck == pass5 then
				print("Access Granted")
				sleep(t)
				redstone.setOutput(side, true)
				term.clear()
			end
		elseif userCheck == unlock then
			run = true
			done = true
		elseif userCheck == e then
			write("Enter the unlock password:")
			usercheck = read()
			if userCheck == unlock then
				term.clear()
				term.setCursorPos(1,1)
				print("For user 1-5 use numbers")
				term.setCursorPos(1,2)
				write("Enter the ID number in which you would like to edit: ")
				c = read()
				if c == 1 then
					term.clear()
					term.setCursorPos(1,1)
					print("Please enter the following information for User 1")
					term.setCursorPos(1,2)
					write("Username: ")
					user1 = read()
					term.setCursorPos(1,3)
					write("Password: ")
					pass1 = read()
					term.setCursorPos(1,1)
					term.clear()
					print("Processing...")
					sleep(2)
					term.clear()
				elseif c == 2 then
					term.clear()
					term.setCursorPos(1,1)
					print("Please enter the following information for User 2")
					term.setCursorPos(1,2)
					write("Username: ")
					user2 = read()
					term.setCursorPos(1,3)
					write("Password: ")
					pass2 = read()
					term.setCursorPos(1,1)
					term.clear()
					print("Processing...")
					sleep(2)
					term.clear()
				elseif c == 3 then
					term.clear()
					term.setCursorPos(1,1)
					print("Please enter the following information for User 3")
					term.setCursorPos(1,2)
					write("Username: ")
					user3 = read()
					term.setCursorPos(1,3)
					write("Password: ")
					pass3 = read()
					term.setCursorPos(1,1)
					term.clear()
					print("Processing...")
					sleep(t)
					term.clear()
				elseif c == 4 then
					term.clear()
					term.setCursorPos(1,1)
					print("Please enter the following information for User 4")
					term.setCursorPos(1,2)
					write("Username: ")
					user4 = read()
					term.setCursorPos(1,3)
					write("Password: ")
					pass4 = read()
					term.setCursorPos(1,1)
					term.clear()
					print("Processing...")
					sleep(t)
					term.clear()
				elseif c == 5 then
					term.clear()
					term.setCursorPos(1,1)
					print("Please enter the following information for User 5")
					term.setCursorPos(1,2)
					write("Username: ")
					user5 = read()
					term.setCursorPos(1,3)
					write("Password: ")
					pass5 = read()
					term.setCursorPos(1,1)
					term.clear()
					print("Processing...")
					sleep(t)
					term.clear()
				elseif c == "side" then
					term.clear()
					term.setCursorPos(1,1)
					print("Please Enter the output side")
					term.setCursorPos(1,2)
					write("Side: ")
					side = read()
					term.setCursorPos(1,3)
					print("Testing...")
					term.clear()
					term.setCursorPos(1,1)
					redstone.output(side, true)
					sleep(t)
					redstone.output(side,false)
				elseif c == "Time" then
					term.clear()
					term.setCursorPos(1,1)
					print("Please enter the open time in Seconds")
					term.setCursorPos(1,2)
					write("Seconds: ")
					t = read()
				end
			end
		end
	end
end
Edited on 17 February 2014 - 05:43 PM