mIRC Home    About    Download    Register    News    Help

Print Thread
#7904 23/01/03 03:04 AM
Joined: Dec 2002
Posts: 111
E
Vogon poet
OP Offline
Vogon poet
E
Joined: Dec 2002
Posts: 111
it still isnt displaying it correctly. im having it halt and echo out and it says insufficent perameters. Whats wrong with it?


.Play Mp3 {
set %mp3file $sfile(%mp3dir, Select Mp3 to Play [::Smurf Mp3 Player::])
/splay -c %mp3file
if (%chanmess == 1) {
set %filesize $bytes(%mp3file,m)
echo %filesize
halt

msg $chan 4,1[::14,1 $+ %mp3file $+ 4,1::] 4,1[::14,1 $+ %filesize $+ 4,1::]
halt
}
}


I also tried a space after the , and before m and it didnt make a difference.

Thanks for your help!

#7905 23/01/03 03:29 AM
Joined: Jan 2003
Posts: 94
S
Babel fish
Offline
Babel fish
S
Joined: Jan 2003
Posts: 94
set %filesize $bytes($file(%mp3file).size,m)

that returns the file's size, otherwise you would just put in the file name.. $bytes only converts it from decimal values.


-
E-Mail: mirc_sabby@hotmail.com
Network: irc.enterthegame.com
Channel: #Helpdesk

Link Copied to Clipboard