mIRC Home    About    Download    Register    News    Help

Print Thread
#13592 28/02/03 04:48 PM
Joined: Feb 2003
Posts: 2
X
x11 Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
X
Joined: Feb 2003
Posts: 2
The problem it says is /set: line too long on line 9 Can you help me with it. THANKS
_____________________________
on *:TEXT:!RANK*:#: {
if ($2 != $null) var %nick = $2
else var %nick = $nick
if (%nick == $nick) var %younick = You,%isare = are
else var %younick = %nick,%isare = is
if ($ini(wins.ini,wins,0) == 0) goto end
if (!$window(@wins.rank)) window -hlnz @Wins.Rank
var %i = 1
while ($ini(scrfyle.tsc,wins,%i) != $null) var %item = $ini(scrfyle.tsc,wins,%i),%sort = %sort $+($readini(scrfyle.tsc,wins,%item),=,%item),%i = $calc(%i + 1)
var %sort = $sorttok(%sort,32,nr),%i = 1
while ($gettok(%sort,%i,32) != $null) {
var %tok = $gettok(%sort,%i,32),%i = $calc(%i + 1)
aline @Wins.Rank $gettok(%tok,1,61) $gettok(%tok,2,61)
}
if (%nick == -list) {
var %i = 1
while ($line(@Wins.Rank,%i) != $null) {
var %line = $line(@Wins.Rank,%i),%nick = $gettok(%line,2,32),%score = $gettok(%line,1,32)
timer 1 %i msg # $+(,%nick,) is currently number $+(,%i,) in rank with a score of $+(,%score,.)
inc %i
}
goto end
}
else {
if ($fline(@Wins.Rank,$+(*,$chr(32),%nick),0,0) == 0) msg # $+(,%younick,) %isare currently not ranked.
else {
var %line = $fline(@Wins.Rank,$+(*,$chr(32),%nick),1,0),%score = $gettok($line(@Wins.Rank,%line),1,32)
msg # $+(,%younick,) %isare currently number $+(,$fline(@Wins.Rank,$+(*,$chr(32),%nick),1,0),) in rank with a score of $+(,%score,.)
}
}
:end
window -c @Wins.Rank
}

Joined: Feb 2003
Posts: 35
O
Ameglian cow
Offline
Ameglian cow
O
Joined: Feb 2003
Posts: 35
you have to limit the through put (input/output depending on if ur reading or writing) no idea how though but im pretty sure that would fix it


Butterflies are random thoughts people have.
They Live, They Die, They Are Pointless.
Joined: Feb 2003
Posts: 9
A
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
A
Joined: Feb 2003
Posts: 9
You where told why when you asked in #HelpDesk on DAL...

Ok .. here is goes again...

You are adding text to %sort for every run of the WHILE loop (on line 9) ...

and the VARIABLE grows to big for mIRC to handle...

----
Basically nothing to you can about it... (sept limiting the text you add)


Link Copied to Clipboard