Posted 15 March 2012 - 07:09 AM
I am having some problems on this for at least 3 days before giving up and asking to get help :P/>/>
I have finished making the computer terminal program but i am having problems with line 32 of the coding below i think because is has been saying "cleaners:4: attempt to call nil" no matter what i do to the whole program itself.
I am also having problems with this code which is a unfinished turtle program that comes with the top of this post:
this coding is driving me nuts :)/>/> :)/>/> :D/>/>
(To think i even know how to make a decent program in C#………………..Im so pathetic ;)/>/> )
If anybody can help it would be greatly appreciated
And i would also appreciate if you tell me what is the problem with my coding so i dont bother all of you again…….
Cheers!!!
I have finished making the computer terminal program but i am having problems with line 32 of the coding below i think because is has been saying "cleaners:4: attempt to call nil" no matter what i do to the whole program itself.
rednet.open("back") term.clear() term.setCursorPos(1,1) main() function main() print("Welcome To The Union Cleaner Terminal") print("-------------------------------------") print("Password:") pass = io.read() if pass == ("cleanunion") then access() else term.clear() term.setCursorPos(1,1) print("Wrong Password!") textutils.slowPrint ("Rolling Back To Main Menu...") sleep(3) main() end end function access() term.clear() term.setCursorPos(1,1) print("Union Cleaners Terminal") print("-------------------------------------") print("Commands: 1 - startclean") sleep(1) print (" 2 - abortclean") sleep(1) print (" 3 - stopclean") print("Enter Command:") comm = io.read() if comm ==("1") then print (" ") com1() elseif comm ==("2") then com2() elseif comm ==("3") then com3() else term.clear() term.setCursorPos(1,1) print ("Invalid Command!") sleep(3) access() end end function comm1() rednet.send("17","start") rednet.send("19","start") term.clear() term.setCursorPos(1,1) print ("Command Executed...") print ("Turtles Have Been Dispatched.") sleep(3) access() end function com2() rednet.send("17","abort") rednet.send("19","abort") term.clear() term.setCursorPos(1,1) print ("Command Executed...") print ("Turles Have Halted.") access() end function com3() rednet.send("17","cancel") rednet.send("19","cancel") term.clear() term.setCursorPos(1,1) print ("Command Executed...") print ("Turtles Are Now Going Back to Terminal.") access() end
I am also having problems with this code which is a unfinished turtle program that comes with the top of this post:
Which keeps saying "cleaner:1:attempt to call nil…..main() function main() turtle.detect() if det == ("true")then goout() else main() end function goout() turtle.dig() turtle.forward() turtle.forawrd() turtle.turnright() end end
this coding is driving me nuts :)/>/> :)/>/> :D/>/>
(To think i even know how to make a decent program in C#………………..Im so pathetic ;)/>/> )
If anybody can help it would be greatly appreciated
And i would also appreciate if you tell me what is the problem with my coding so i dont bother all of you again…….
Cheers!!!