Re: Subscript value out of Bounds
- Posted by petelomax Mar 27, 2023
- 542 views
Icy_Viking said...
Error: subscript value 0 is out of bounds, assigning to a sequence of length 1 - in subscript #1 of 'buildings'
for i = 0 to MAX_BUILDINGS do buildings[i] = GetRandomValue(50,200) --error is coming from this line
Well, that one's certainly guaranteed. Surely you meant for i = 1 to MAX_BUILDINGS do? There's at least one more further on.