#Test every players score

1 messages · Page 1 of 1 (latest)

rose plank
#

I have a script that is meant to test the scores of the players and induce a level-up once the quota for xp is met. However it only seems to work for 1 player at a time and then switches at random. How can I make it apply to every player at one time?

thin finch
#

why are you using break

#

break is equivalent to return which ends the code at that point, so as soon any of the break runs it stops the loop completely

i think ur looking for continue statement which breaks current execution only and not the entire loop

rose plank
#

ahhh that would make sense, I'll give that a try