Posts: 929
Threads: 17
Joined: Mar 2012
Reputation:
0
you only create the vehicle if the random number = 8
maybe it never was 8..
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Are you sure that you need that break statement? Seems a bit ambiguous. When the first connected player is found, the vehicles are created and the loop stops. However, you already know there are players connected from the first if-statement; this makes the loop quite obsolete.