Page 1 of 1

error() causes a crash

Posted: Mon May 16, 2016 8:06 pm
by beanybabe
strange problem the error() is making bot crash

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
print (getZoneId())

error()
</onLoad>
</waypoints>

Re: error() causes a crash

Posted: Mon May 16, 2016 10:39 pm
by lisa
error() will make MM exit what ever script it is running and go back to the command prompt, that is what it is for.

I have absolutely no idea what you thought it was for.

Re: error() causes a crash

Posted: Tue May 17, 2016 12:19 am
by beanybabe
I use it to exit the script

but for some reason that bit of code crashes the bot it may be because there no text message in the ()

Re: error() causes a crash

Posted: Wed May 25, 2016 2:56 pm
by BlubBlab
It like Lisa said error() will end the running script with an error message