mIRC Home    About    Download    Register    News    Help

Print Thread
#192194 24/12/07 12:37 PM
Joined: Dec 2007
Posts: 4
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Dec 2007
Posts: 4
i have built a bot that takes lines from 1 server and paste it to main server (7 servers connected total)

+

the bots counts line and sh*t like that.

everything was great.
now, around 10-15 min after the bots working it crashs.
i can "save" him by pressing control+break
but in the status i dont see the script's name + line that's currpted

what else can i do?

and, is there any way to "do" control+break with command and not manualy?

10x.

Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
It's probably a while loop, can you paste your code here ?


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #192199 24/12/07 04:33 PM
Joined: Aug 2007
Posts: 334
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Aug 2007
Posts: 334
any sort of loops other than aliases crash if you make it infanite... takes to much memory for mIRC to be able to run... mIRC scripting language uses a lot of your comp's resources/power to run frown


This is not the signature you are looking for
Joined: Dec 2007
Posts: 4
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Dec 2007
Posts: 4
is there any way to "do" control+break with command and not manualy?

the script is 850 lines..
the break error wont return me the "bad" loop.. that's the thing

if it was, i could have fix it allready

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
To break out of a loop in a script you simply use the "break", "return" or "halt" commands. Each one does a different thing, I suggest looking them up in the /help

That's not really how you solve broken loops though. An infinite loop means you didn't specify an end condition.

Read http://www.kthx.net/ftb to find out where the bug in your code is.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
argv0 #192230 25/12/07 12:09 AM
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
Originally Posted By: argv0
An infinite loop means you didn't specify an end condition.


Not in his case, apparently, his loop become infinite after 10-15 min.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #192233 25/12/07 03:00 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
More likely, the loop isn't called until then.


Invision Support
#Invision on irc.irchighway.net
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
There shouldnt be really too many remotes if there is, unload them all then load them one by one till problem arises then youll know which script to work on.


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }

Link Copied to Clipboard