Posted 28 March 2013 - 05:43 AM
Okay so I am trying to make a simple clock, but it didn't work as it keeps saying: "startup:5: attempt to call nil", and I am getting confused now I had a search for what the error means and it says I have to make a program to utilize the certain bits of code's features? as the code is calling something that isn't recognised? have I not installed something correctly or? I am using minecraft 1.5.1 and the technic launcher (tekkit lite).
here is my code:
help please
EDIT:
I am a complete newbie to this language, as I use HTML,PHP,C++ etc :/
here is my code:
funtion infiniteLoop()
while true do
mon = peripheral.wrap("left")
mon.setTimeScale(3)
local time = os.time()
time = textutils.formatTime(time,false)
mon.clear()
mon.setCursorPos(1,1)
mon.write(time)
sleep(1)
end
end
infiniteLoop()
help please
EDIT:
I am a complete newbie to this language, as I use HTML,PHP,C++ etc :/