Code: Select all
task main() {
int select=10, board[9], i;
for (i=0; i<9; i++)
{
board[i]=0;
}
PlayTone(500,500);
Wait(1000);
for (i=9; i>0; i--) { if (board[i]==0) {PlayTone(1000,500);Wait(1000);} } //ERROR HERE(?)
PlayTone(2000,500);
Wait(1000);
}
On the standard NXT firmware it just says "File Error!"
I think that the issue is something to do with arrays. Any ideas? Thanks!