11 years ago*

Comment has been collapsed.

You clearly initialized it, then overwrote it with playerLocation = Get.playerLocation(index, row, col, totRow, totCol, room);
I'm assuming said function doesn't return an array with the dimensions you were hoping for.

11 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

11 years ago
Permalink

Comment has been collapsed.

Code for Get.playerLocation?

11 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

11 years ago
Permalink

Comment has been collapsed.

What's 'index' that you pass to the function? I think you want to pass it playerLocation instead.

Also you can add a break, or even a return in the 'if'.

11 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

11 years ago
Permalink

Comment has been collapsed.

Sometimes asking random strangers on the internet helps you to see the answer yourself. =)

11 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

11 years ago
Permalink

Comment has been collapsed.

Can you post a bigger continuous portion of code? I don't really understand everything that's going on here with just those three lines...

11 years ago
Permalink

Comment has been collapsed.

Closed 11 years ago by TheNamlessGuy.