Posted 26 November 2012 - 07:17 AM
Ok, firstly I'm a complete noob to CC and Lua so if I'm making a really obvious mistake cut me a little slack.
Anyway what I want to do is fairly simple: have a monitor that displays a short message and the time. Displaying my message was easy but adding in the time is confusing me. This is the program I have now (named "Text"):
term.clear
term.setCursorPos(5, 3)
nTime == os.time()
print ("Welcome Player")\(
print ("The time is "..textutils.formatTime ( nTime, false))
every time i try to run this I get this error code; bios:206: [string "text"]:2: '=' expected
it says to add an = sign but I don't think I need one anywhere it's really anoying
also will I need some sort of loop to refresh the time and keep it updated (I'll be displaying all this on a big monitor)
thanks!
Anyway what I want to do is fairly simple: have a monitor that displays a short message and the time. Displaying my message was easy but adding in the time is confusing me. This is the program I have now (named "Text"):
term.clear
term.setCursorPos(5, 3)
nTime == os.time()
print ("Welcome Player")\(
print ("The time is "..textutils.formatTime ( nTime, false))
every time i try to run this I get this error code; bios:206: [string "text"]:2: '=' expected
it says to add an = sign but I don't think I need one anywhere it's really anoying
also will I need some sort of loop to refresh the time and keep it updated (I'll be displaying all this on a big monitor)
thanks!