mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2004
Posts: 3
A
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Jan 2004
Posts: 3
Ok, I have this nick list pop up that kicks people and reads a random kick message from a .txt file. The pop up is made to kick all nicks highlighted in the nick list. When using this particular script it freezes mIRC and makes it stop responding. I have windows XP, a 3.06 ghz processor with hyper threading and 512 mb of ram so it couldn't possibly be a problem with my system resources. I used to use this script in another form and it worked fine. This is the script if it helps:
.Random Reason:{
var %i 1
while ( %i <= $0 ) {
var %nick $eval($ $+ %i,2)
kick $chan %nick $read(kick.txt)
}
}
now if i used this script like this it works:
.Random Reason:{ kick $chan $nick $read(kick.txt) }
I have several others like the first script I showed you and they work fine. It seems that the $read(kick.txt) part has something to do with it. I have received this error once while testing the script:([10053] Software caused connection abort). I wish I knew why. I hope someone can help grin

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
You have to inc %i.

Code:
.Random Reason:{
  var %i 1
  while ( %i &lt;= $0 ) {
    var %nick $eval($ $+ %i,2)
    kick $chan %nick $read(kick.txt)
    [color:red]inc %i[/color]
  }
}

Joined: Jan 2004
Posts: 3
A
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Jan 2004
Posts: 3
oh boy, feel dumb now i thought i had that part there.... blush


Link Copied to Clipboard