Confusing Mudlet echo error

I'm getting a rather confusing error in my limb counter miniconsole display.

Here's the area where the error occurs.
if holding == "no" then

  cecho("LimbcounterDisp", "\n\n<white>Not wielding\n")

else

  cecho("LimbcounterDisp", "\n<red>WIELDING!!!\n")

  if enemyImpaled == "yes" then

    cecho("LimbcounterDisp," "<red>TARGET IMPALED!!!\n")

  end

end


Lua syntax error:[string "-- Basic values --..."]:576: ')' expected near "TARGET IMPALED!!! "'.


I'm taking this to mean the lua doesn't think I closed out the cecho parentheses, when I quite clearly did? Anyone have an idea wtf it's talking about?

Best Answer

  • Accepted Answer
    cecho("LimbcounterDisp," "<red>TARGET IMPALED!!!\n")

    the comma is between LimbcounterDisp and the quote, this line should read

    cecho("LimbcounterDisp", "<red>TARGET IMPALED!!!\n")
    image

Answers

  • Can't believe a little typo like that got me. This is why I dropped out of CS in college.

    Thanks!
  • you should stay with cs. basically, it's error and trial here you are experiencing. at least you know where to look for when in situation similar thing like this might happen again. :)


    2015/01/12 Tecton, the Terraformer has bestowed His divine favour upon you. It will last for approximately 1 Achaean month.
  • That necro, though.

  • yeah i wonder why it show up on the top of list.. i didn't see the date. XD i don't know how i find this thread somewhere.. somehow. EXCUSE ME!


    2015/01/12 Tecton, the Terraformer has bestowed His divine favour upon you. It will last for approximately 1 Achaean month.
Sign In or Register to comment.