Why my editor is crashing from this code?

From this code snippet, I do not see anything that sets “i” to zero to start.

I also don’t see any code that prevents “i” from going out of range on jucatori[i] - does it not need to loop back to zero at some point when you have cycled through all of the players?