21.12.2013, 18:56
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.
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.