Invalid set index (on base: 'Array') with value of type 'int'

Godot Version

v4.2.1.stable.mono.official

Question

I try to change value in array
array[index1][index2] = 5
but it gives an error “Invalid set index ‘5’ (on base: ‘Array’) with value of type ‘int’”
I checked the array, everything should fit, but alas no
I think the problem is similar to this one
Same problem

Show your actual code.

1 Like

Solved.
I passed a constant to the array.

const Dictionary = {name : value_int}
var Array.append(Dictionary[name])
Array[0] = some_int

it gives an error.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.