Page 1 of 1

Error MM1

Posted: Sun Sep 14, 2014 5:48 pm
by Lamkefyned
Sin título.jpg

Code: Select all

error(...)
a script rombot

Re: Error MM1

Posted: Sun Sep 14, 2014 7:54 pm
by Administrator
That could be caused by absolutely anything. Are you able to consistently reproduce it, or did it just happen randomly?

Re: Error MM1

Posted: Mon Sep 15, 2014 6:27 am
by Lamkefyned
I put the code

Code: Select all

error(...)
but that code so bad because it is

Code: Select all

error("...")
But put the microMACRO unquoted stops working and does not put any mistake and error.

Re: Error MM1

Posted: Mon Sep 15, 2014 11:19 am
by Administrator
Ah, I see. Looks like you're crashing Lua itself.

You are using the error function wrong though. Those ellipsis (...) are only for vararg lists. The error() function expects a string that explains the error, and optionally the level to report it at.

Code: Select all

error("Something went wrong");
If you don't put a string, it causes a crash.

Re: Error MM1

Posted: Mon Sep 15, 2014 12:45 pm
by Lamkefyned
Understood Admin thank you very much