u had declard "string $currentMenuSel[]" earlier wen r ran it earlier.
so changin ur line to this ll avoid furthr errs:
string $currentMenuSel2[] = textScrollList -q -ai sMrTSL;
FYI:
if u want to test ur MEL scripts, enclos ur code insid curly braces. then u may re-run the whol code without bothering bout redeclaration.
for e.g; run these 2 multipl times:
string $x1="a";
print $x1;
and
{
string $x1="a";
print $x1;
}
and find the diffrnc.