Jump to content




LUA HELP!

lua help

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

#1 Falco

  • Members
  • 33 posts
  • LocationSOMEWHERE IN F*%KING MINECRAFT!!!

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. :(

#2 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

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?

#3 Falco

  • Members
  • 33 posts
  • LocationSOMEWHERE IN F*%KING MINECRAFT!!!

Posted 20 December 2012 - 10:52 PM



I'm also using CC-EMU.

heres a screenshot of the error.....
Spoiler


#4 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 December 2012 - 10:53 PM

the first line is version = 0.1 BETA

make it

version = "0.1 BETA"

#5 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 20 December 2012 - 10:56 PM

Yep, remember to have multiple words in a string. Next time remember to post the whole code.

#6 Falco

  • Members
  • 33 posts
  • LocationSOMEWHERE IN F*%KING MINECRAFT!!!

Posted 20 December 2012 - 10:56 PM

View PostTheOriginalBIT, on 20 December 2012 - 10:53 PM, said:

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 :)

#7 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 December 2012 - 11:00 PM

View PostFalco, on 20 December 2012 - 10:56 PM, said:

I knew i shoul dof just PM'ed you in the first place :)

lol.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users