He means this
while %a <= %b {
should be this
while (%a <= %b) {
-
and this
if !$window(@Music) { .window @Music }
should be this
if (!$window(@Music)) { .window @Music }
-
and this
if $disk(%a).type == fixed {
should be this
if ($disk(%a).type == fixed) {
-
and this
elseif $disk(%a).type = remote
should be this
elseif ($disk(%a).type == remote) { Your error is probably here.
-
and this
%ticks = $calc($ticks - %ticks)
should be this
var %ticks = $calc($ticks - %ticks)