The variable: player1_answers is NOT defined as an array. Therefore the compiler will not allow array notation: [theIndex] to be used with it.
player1_answers[index] The red part is not allowed for...
Type: Posts; User: Norm
The variable: player1_answers is NOT defined as an array. Therefore the compiler will not allow array notation: [theIndex] to be used with it.
player1_answers[index] The red part is not allowed for...
To access an element in an array, use array notation. For a single dimension array: theArrayName[theIndex]
I see that your code already uses array notation.
An if statement could be used to...