mIRC Home    About    Download    Register    News    Help

Print Thread
#91121 20/07/04 09:17 AM
Joined: Jan 2004
Posts: 25
D
djdj Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Jan 2004
Posts: 25
im making a massop/deop... script, but this message always comes up (in Status Window) when im testing it on myself in a channel...:
* Send error ([10053] Software caused connection abort)

heres the script (OBS! this is in the NickList popup feature!):

Mass
.Op:{
if ($me isop #) {
var %o = 1
:loop
if ($snick(#,0) > 0) {
mode # + $+ $str(o,$modespl) $gettok($snicks,%o,44) $gettok($snicks,$calc(%o + 1),44) $gettok($snicks,$calc(%o + 1),44) $gettok($snicks,$calc(%o + 1),44)
if (%o <= $snick(#,0)) { goto loop }
}
}
}

someone help me? crazy


Thax
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
It doesnt looke like (to me) that you're either increasing or decreasing the variable at all. maybe try:

Code:
  var %o = 1
  :loop
  if ($snick(#,0) &gt; 0) {
    mode # + $+ $str(o,$modespl) $gettok($snicks,%o,44) $gettok($snicks,$calc(%o + 1),44) $gettok($snicks,$calc(%o + 1),44) $gettok($snicks,$calc(%o + 1),44)
    if (%o &lt;= $snick(#,0)) { inc %o | goto loop }
  }


Just a thought to try


Those who fail history are doomed to repeat it
Joined: Jan 2004
Posts: 25
D
djdj Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Jan 2004
Posts: 25
tnx m8
i forgot to 'inc' it... hehe.. *bad*
i shouldve seen that :tongue:
tnx for your fast reply, landonsandor!


Thax
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
anytime smile glad to be of help. As a side note, you could also use the following example to only show the popup if you are an op:

Code:
Mass
.$iif($me isop #,Op): {
  var %o = 1
  :loop
  if ($snick(#,0) &gt; 0) {
    mode # + $+ $str(o,$modespl) $gettok($snicks,%o,44) $gettok($snicks,$calc(%o + 1),44) $gettok($snicks,$calc(%o + 1),44) $gettok($snicks,$calc(%o + 1),44)
    if (%o &lt;= $snick(#,0)) { inc %o | goto loop }
  }
}


This way if it doesnt apply to you (you're not opped) you wont see it smile use it or not, just a thought is all smile smile


Those who fail history are doomed to repeat it
Joined: Apr 2004
Posts: 218
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
This code, highlight the nicks in the nicklist this run the code.
I really don't understand your code, though. ;\
Code:
var %n = 1 
var %o 
 while (%n &lt;= $snick($chan,0)) { 
.var %o = %o $eval($snick($chan,%n),99) 
 inc %n
 } 
 .mode $chan + $+ $str(o,$snick($chan,0)) %o }
 



Live to Dream & Dream for Life
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Hmm, to be honest the above codes, seem to be completely 'useless' for anything other than something that might be used to take over a channel, the oppion might be that you "need" to op that many people, but i've never seen the problem with op'ing the maximum users allowed in anyone, /mode..

For example, why not just use:

Op:{
//mode # $+(+,$str(o,$snick(#,0))) $replace($snicks,$chr(44),$chr(32))
}


Link Copied to Clipboard