mIRC Home    About    Download    Register    News    Help

Print Thread
#96650 03/09/04 11:20 PM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
* Invalid format: $evalnext (line 2, random)
if (%random == on) { $mp3rep($eval($replace(%mp3.msg,<amsg>,amsg,<filter>,msg2,<echo>,echo,<Type>,%mp3.type,<Title>,%mp3play,<Size>,$bytes($file($insong.fname).size).suf,<Album>,$iif($sound($insong.fname).album,$ifmatch,Unknown),<Genre>,$iif($sound($insong.fname).genre,$ifmatch,Unknown),<Length>,$time($calc($sound($+(",$insong.fname,")).length /1000+ $timezone),nn:ss),<kHz>,$calc($sound($insong.fname).sample /100) kHz,<Kbps>,$sound($insong.fname).bitrate kbps,<Rank>,$ord(%mp3.rank),<Rank2>,$iif(%mp3.rank == $lines(Rank.txt),New,$iif($calc(%mp3.temp10 - %mp3.rank) == 0,No Rank Change,Up $calc(%mp3.temp10 - %mp3.rank) Ranks)),<Total>,%mp3count,<Played>,%mp3.played,<Today>,%SongsToday. [ $+ [ $adate ] ]),2)) }
I see no "$evalnext" in that line... Anyone see anything wrong?


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
#96651 04/09/04 12:28 AM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
Btw, This ONLY happens when I play:
Papa Roach - Getting away with murder.mp3
Dunno why... Anyone know?


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
#96652 04/09/04 09:22 AM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
$evalnext is used in the $eval identifier in some way, so check out the $eval in that piece of code and see what would give strange results.

I'm not even sure why the $eval is necessary, it seems everything is evaluated the first time around...

But then again, it's a big and unreadable blob of code, so I'm not going to get a headache trying to figure it all out. My suggestion: split it up in smaller pieces, that way you get a more specific error message.

#96653 04/09/04 01:15 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Slightly off topic: using an identifier at the start of a line is asking for errors, try using .echo -q before $mp3rep(


New username: hixxy

Link Copied to Clipboard