❔ ✅ Messagebox doesn't start at 1 & error after
this is my code, but the messagebox doesn't show 1, it starts at 2. after 5, it gives me the error 'index was outside the bounds of the array'. why?
4 Replies
Are you familiar with what a foreach does?
For example can you tell me what
i
means in this loopkinda, but i just figured it out lol. i think its supposed to do the code for every thing there in the array is right? but changing numbers[i] to just 'i' works! :D
Yep :)
Trying with different numbers would also have shown you something weird would happen
You can /close this thread if your question is solved ^^
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.