i ahve a question, this is my first attemopt at a script taht does anything usefull but i can't seem to get it right..
here is teh code
alias syn {
if (%mp3.dir == $null) { set %mp3.dir $sdir(C:/,Select Your mp3 Directory) }
if (%rand == on) { set $rand(%mp3.dir) | syn.dis | syn.play {
if ($insong == true) { on *:mp3end: { set %mp3 $rand(%mp3.dir) | syn.dis | syn.play } }
elseif ($inwave == true) { on *:mp3end: { set %mp3 $rand(%mp3.dir) | syn.dis | syn.play } }
else ($inmidi == true) { on *:mp3end: { set %mp3 $rand(%mp3.dir) | syn.dis | syn.play } }
}
}
else {
syn.get
syn.rand
syn.dis
syn.play
}
}
alias syn.get {
set %mp3 $sfile(%mp3.dir,Select a song!,ok)
}
alias syn.rand {
set %rand $$?="Set this value to either, on or off:"
}
alias syn.dis {
set %mp3.name $sound(%mp3).title
set %mp3.length $sound(%mp3).length
set %mp3.artist $sound(%mp3).artist
set %mp3.bit $sound(%mp3).bitrate
}
syn.play {
//splay %mp3
msg $active syn mp3; (%mp3.artist(%mp3.title)%mp3.length) @ (%mp3.bit)
}
and here is teh problems...
it dioesnt set the mp3.artist mp3.name... ect variables
other then that everything else works besides syn.play in which case i get this error... SYN.PLAY Unknown command
oh and also i get an error on the random part which says to many parameters are set
any help would be great.. thanks