; /scores_show <N> [command]
; if N = 0, it shows them all
What are you talking about?
If you don't specify anything, then it isn't supposed to show anything, because I have clearly stated, and the code clearly shows this with the isnum 0- check that the first parameter must be a number that is either zero or higher.
When taking a closer look at the $iif, you clearly notice that when you specify a 0, it will show all entries, if you specify a positive N it will show the N'th score.
$iif($1,$1,$line(@scores,0)) is exactly like I intended it. If you specify 0, then the $iif is false, so it must loop from 1 till the end, therefore %ii is assigned $line(@scores,0)
With your isnum check, when specifying a 0, it would not show anything, because %ii would be set zero.
Of course it doesn't return anything, did you even bother to take a look at the code?!?
if ($1 !isnum 0-) || (!$window(@scores)) return