Variable poziceX isn’t an array of int
values, but just an int
.
Either declare it as an array or choose 1 of poziceXStr[]'s indices to store its current value there:
void tisknuti(final int idx) {
poziceXStr[idx] = str(poziceX);
}
Variable poziceX isn’t an array of int
values, but just an int
.
Either declare it as an array or choose 1 of poziceXStr[]'s indices to store its current value there:
void tisknuti(final int idx) {
poziceXStr[idx] = str(poziceX);
}