Welcome to the Achaea Forums! Please be sure to read the Forum Rules.

Confusing Mudlet echo error

RajanRajan Posts: 193Member ✭✭✭ - Distinguished
edited November 2012 in Curing Systems and Scripts
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

  • JacenJacen Posts: 2,302Member @@ - Legendary Achaean
    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

  • RajanRajan Posts: 193Member ✭✭✭ - Distinguished
    Can't believe a little typo like that got me. This is why I dropped out of CS in college.

    Thanks!
  • ValariaValaria Posts: 390Member ✭✭✭ - Distinguished

    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.
  • CynlaelCynlael Posts: 3,257Member @@ - Legendary Achaean

    That necro, though.

    Valaria
  • ValariaValaria Posts: 390Member ✭✭✭ - Distinguished

    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 to Comment.