Error MM1

Discuss, ask for help, share ideas, give suggestions, read tutorials, and tell us about bugs you have found with MicroMacro in here.

Do not post RoM-Bot stuff here. There is a subforum for that.
Forum rules
This is a sub-forum for things specific to MicroMacro.

This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
Post Reply
Message
Author
User avatar
Lamkefyned
Posts: 348
Joined: Thu May 23, 2013 11:38 am
Location: Spain

Error MM1

#1 Post by Lamkefyned » Sun Sep 14, 2014 5:48 pm

Sin título.jpg

Code: Select all

error(...)
a script rombot
If you think something is right just because everyone else believes,you're not thinking.

User avatar
Administrator
Site Admin
Posts: 5306
Joined: Sat Jan 05, 2008 4:21 pm

Re: Error MM1

#2 Post by Administrator » Sun Sep 14, 2014 7:54 pm

That could be caused by absolutely anything. Are you able to consistently reproduce it, or did it just happen randomly?

User avatar
Lamkefyned
Posts: 348
Joined: Thu May 23, 2013 11:38 am
Location: Spain

Re: Error MM1

#3 Post by Lamkefyned » Mon Sep 15, 2014 6:27 am

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.
If you think something is right just because everyone else believes,you're not thinking.

User avatar
Administrator
Site Admin
Posts: 5306
Joined: Sat Jan 05, 2008 4:21 pm

Re: Error MM1

#4 Post by Administrator » Mon Sep 15, 2014 11:19 am

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.

User avatar
Lamkefyned
Posts: 348
Joined: Thu May 23, 2013 11:38 am
Location: Spain

Re: Error MM1

#5 Post by Lamkefyned » Mon Sep 15, 2014 12:45 pm

Understood Admin thank you very much
If you think something is right just because everyone else believes,you're not thinking.

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests