The error message means that your result set is not an array - your query is either faulty, or, more likely, is not returning an array (ie., you're only selecting one column). Something like this should work:
SELECT staff_id, message AS mess
FROM login
WHERE staff_id='$staff_id_a'
Alternatively, you could just skip the extract() step entirely:
$rowa= mysql_fetch_row($resulta);
if($rowa[0] != 'n') {
echo '<script>alert("' . $rowa[0] . '")</script>';
// etc ...
}