mIRC Home    About    Download    Register    News    Help

Print Thread
#94300 15/08/04 12:12 PM
Joined: Sep 2003
Posts: 29
S
sopia Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Sep 2003
Posts: 29
this code in channel popup.
Play Sound:{
sound $sfile($mp3dir,Choose a song,Playit)
msg $chan Now Playing: $nopath($inmp3.fname)
}

Now that works fine. The problem is when I click the cancel button so not to choose the song, It will still msg to channel the the name of the previous song played or just the word Now Playing. How to stop this from hapenning ?
Help please.


Keep learning everyday, you'll be a genius.
#94301 15/08/04 12:26 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
sound $+(",[color:green]$[/color]$sfile($mp3dir,Choose a song,Playit),")

The RED coding adds "s to the start/end of the filename, this prevents problems if theres a space in the filename.

The GREEN coding is the bit that fixes what you requested, unless you select a file the script wont continue.

Eamonn.

#94302 15/08/04 01:45 PM
Joined: Sep 2003
Posts: 29
S
sopia Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Sep 2003
Posts: 29
It worked perfectly Coolkill.
Thanks a million. God bless you.


Keep learning everyday, you'll be a genius.

Link Copied to Clipboard