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

LUA HELP!

Started by Falco, 20 December 2012 - 09:30 PM
Falco #1
Posted 20 December 2012 - 10:30 PM
Please I cant work out whats wrong with this peice of code….


function clear()
shell.run("clear")
print("UGSD (Underground Shaft Digger). Running version:" .. version)
print("--------------------------")
print("")
end

I'm getting an "=" expected on the first line but no matter how many "=" I put there it dosn't work. :(/>
Sammich Lord #2
Posted 20 December 2012 - 10:38 PM
I just ran the same code in CC Emulator and it worked perfectly. If this is only part of the code then can we see the full code with the exact error and what CC version are you running?
Falco #3
Posted 20 December 2012 - 10:52 PM



I'm also using CC-EMU.

heres a screenshot of the error…..
Spoiler
theoriginalbit #4
Posted 20 December 2012 - 10:53 PM
the first line is version = 0.1 BETA

make it

version = "0.1 BETA"
Sammich Lord #5
Posted 20 December 2012 - 10:56 PM
Yep, remember to have multiple words in a string. Next time remember to post the whole code.
Falco #6
Posted 20 December 2012 - 10:56 PM
the first line is version = 0.1 BETA

make it

version = "0.1 BETA"

DUDE I FUCKING LOVE YOU!!!!

I knew i shoul dof just PM'ed you in the first place :)/>
theoriginalbit #7
Posted 20 December 2012 - 11:00 PM
I knew i shoul dof just PM'ed you in the first place :)/>

lol.