Jump to content




Unexpected Symbol


  • You cannot reply to this topic
1 reply to this topic

#1 Scratch

  • New Members
  • 4 posts

Posted 01 November 2012 - 05:19 PM

I have the code:
print("The time is: "..hours.."."..minutes.."."..seconds..)

upon compiling the program, I recieve the error "unexpected symbol"

I am getting this issue a lot since using ComputerCraft, and it's very frustrating

Does anyone know what's wrong?

#2 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 01 November 2012 - 05:21 PM

you have an extra concatenation operator
let me fix that for you:
print("The time is: "..hours.."."..minutes.."."..seconds)
also make sure hours minutes and seconds are strings or numbers :3





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users