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

bios:338: Error - Tekkit Lite

Started by user7755, 24 May 2013 - 10:11 AM
user7755 #1
Posted 24 May 2013 - 12:11 PM
Title: bios:338: Error - Tekkit Lite

Hello everyone, i just wrote a quick programm to display the Time on a Monitor with os.time() but then I got this Error: bios:338: [string startup]:6: '<name>' expected

Yes I know I'm new to CC and I dont know anything but I just got the following Code from a Youtube Video.
The Code:

monitor = pheripheral.wrap("back")
monitor.setTextScale(3)
while true do
sleep(0)
monitor.setCursorPos(1,1)
monitor.write(textutils.formatTime(os.time().true))
end
monitor.restore()



Thanks for your help in advance
Lyqyd #2
Posted 24 May 2013 - 01:47 PM
Split into new topic.

Since that isn't the error that that code would generate, please carefully verify that you have copied exactly what you have in-game, ensuring that every single character is exactly the same.
Engineer #3
Posted 24 May 2013 - 04:59 PM
This:

monitor.write(textutils.formatTime(os.time().true))

Should be this:


monitor.write(textutils.formatTime(os.time(),true))

Yes, you need a comma instead of a period. period! :P/>