Hiya folks, I’ve got a bit of a weird one. It’s sort of in the title but whenever I use another variable to declare the length of an array I get something like this…
After some fiddling got me nowhere I cut it all down into it’s basic parts.
The array won’t always be 5, I’m only pretending it is for the bug test.
The error still pops up…
I’ve tried brackets, I’ve tried putting the brackets in brackets. I’ve tried putting it all in regular () brackets too. No luck at all.
results in the word 'shiftArray_length_003_X ', where x is the length of an array with the same name as the string in param_1 (confusing I know, sorry lol)
If there’s a lot of numbers it could be, I’d suggest using gosub_scene and have a file dedicated to all those numbers.
Some way you could improve this is adding params to set the array name and if you need it, link to use other array_length subroutines if one array at one certain length needs to do something extra special