Loops jumps over number 1
#3

This code relies on assumptions, which is bad. It assumes that the first pickup to be created will have id 1, while that may not always be the case.

You start with x = 0. CreateDynamicPickup assigns it the value 1. x is then incremented. x is now 2. The next cycle will start with x = 2.
Reply


Messages In This Thread
Loops jumps over number 1 - by Hansrutger - 21.12.2013, 18:41
Re: Loops jumps over number 1 - by Konstantinos - 21.12.2013, 18:51
Re: Loops jumps over number 1 - by Vince - 21.12.2013, 18:56
Re: Loops jumps over number 1 - by Hansrutger - 21.12.2013, 19:08

Forum Jump:


Users browsing this thread: 1 Guest(s)