Code:
alias mp3.thing {
var %len = $calc($inmp3.pos / 1000) , %output , %mins = 0 , %secs = 0
%secs = $calc( %len % 60 )
if ( %len >= 60 ) %mins = $calc( ( %len - %secs ) / 60 )
echo -s %mins $+ : $+ $base(%secs,10,10,2)
}


/timermp3 0 1 mp3.thing

$base strips the decimals & adds the padding zero if %secs are 0-9

if you wan't your code to work you should add a lot of !'s there

EDIT: darn, scatman knew a better way =(

Last edited by theRat; 24/05/03 05:55 PM.

Code:
//if ( khaled isgod ) echo yes | else echo no