Quote:
|
Originally Posted by KuJi
strtofloat(#v(int(length)))*60
|
should just be 'int(length)*60'
PHP Code:
if (created) {
play 33.mp3;
mlen = int(musiclen);
timeout = .05;
}
if (timeout) {
cpos = int(musicpos);
left = int(musiclen-musicpos);
message Total:#v(int(mlen/60))m#v(mlen%60)s
Current:#v(int(cpos/60))m#v(cpos%60)s
Left:#v(int(left/60))m#v(left%60)s;
timeout = .05;
}
newfeatures2002 says it doesn't work on midis, so unless you have a long wav file, I'd recommend using mp3s.
I still hate the CODE tags very much