mIRC Home    About    Download    Register    News    Help

Print Thread
#13642 01/03/03 03:42 AM
Joined: Dec 2002
Posts: 699
N
Nimue Offline OP
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
$scriptline is always 0 when called from single line events.

Code:
on *:join:#:echo -s * $nopath($script) $scriptline
[color:#666666]* misc.mrc 0[/color]
$scriptline should be 11
Code:
on *:join:#:{
  echo -s * $nopath($script) $scriptline
}
[color:#666666]* misc.mrc 12[/color]
$scriptline works fine in this case.

#13643 02/03/03 02:26 PM
Joined: Dec 2002
Posts: 12
I
Pikka bird
Offline
Pikka bird
I
Joined: Dec 2002
Posts: 12
yes, also when there r errors in script, mirc writes out the line number with error message when the script is coded like that second one ;-)


Link Copied to Clipboard