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

[Q][Solved] Bios:206["Roms"]:9: "=" expected

Started by Beatsleigher, 12 December 2012 - 07:21 AM
Beatsleigher #1
Posted 12 December 2012 - 08:21 AM
Hey guys!
This is my first post, so sorry if I write stuff here, which is not wished, where as it is allowed on others. :)/>

For a couple of days, now, I've been hosting a Tekkit server, and I've decided to work with CC, aswell as RedPower, BC, IC and EE, so I decided to write a small program, advertising for space in my cellar.

The code is as follows:

print("Clearing all screens!")
shell.run("monitor", "top", "Clear")
print("Cleared all screens!")
NOR = 1
-- NOR = Number of Rooms
Rooms = Sortier Anlage
-- Rooms = Name of built/available/used rooms
-- Now it gets german (Sorry guys!)
print("Willkommen!")
print("Derzeit haben wir")
print(NOR)
print("Raum/Raeume.")
print("Diese heissen:")
print(Rooms)
print("") --Attempting the same as "echo." in batch
print("Sollten Sie Interesse an einem dieser Raeume haben, so melden Sie sich bitte bei Beatsleigher, dem OP dieses Server.")
print("Aktuelle Preise finden sie, indem Sie:")
print("cd/disk/Preise")
print("Und dann:")
print("Preise")
print("In einem der sich hier befindenden Computern eingeben.")
print("")
print("Einen schoenen Tag wuenscht Ihnen CaTiLyxX, der Hoster und  Besitzer dieses Servers!")
-- Program Ends here

And I always get following error: Bios:206["Roms"]:9: "=" expected
Could someone please help?

Thanks in advance! :D/>

LG Beatsleigher

P.S. Sorry, I really am, if this is way too n00by for some of you. I have no experience, what so ever, with LUA..
PixelToast #2
Posted 12 December 2012 - 08:39 AM

Rooms = Sortier Anlage
needs to be

Rooms = "Sortier Anlage"

the transfer from batch to lua is kinda hard, i was so used to using set and echo .-.
Beatsleigher #3
Posted 12 December 2012 - 10:12 AM
Thanks a bunch, dude :D/>

Yeah, you're right. Especially since I still use it, to program..