Jump to content




[Solved][Error][Question] Adding a string to a set sentence


  • You cannot reply to this topic
2 replies to this topic

#1 Stormkrow

  • Members
  • 50 posts
  • LocationSouth Africa

Posted 31 May 2012 - 10:03 AM

Hi guys:)

Im a bit new to computercraft and im trying to edit the startup of a computer. I want it to startup with a set sentence with strings that go into the sentence that i can change as time goes on. This is the code:

local Name = "Testversion "
local Version = "BETA 0.1"

print("Welcome to "Name..Version)

It pops up with an error reading:

bios:206: [string "startup"] : 4 : ')' expected

Any help? Please do! Im still a noob:P

#2 my_hat_stinks

  • New Members
  • 52 posts

Posted 31 May 2012 - 10:05 AM

Should be
print("Welcome to "..Name..Version)


You missed a ".."

#3 Stormkrow

  • Members
  • 50 posts
  • LocationSouth Africa

Posted 31 May 2012 - 10:15 AM

There we go! Thanks a ton! :)/>





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users