21.12.2013, 19:08
(
Последний раз редактировалось Hansrutger; 21.12.2013 в 20:39.
)
Quote:
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. |
So it's better to not have a 0.ini at all but start the creations at 1 instead in my "createbusiness" command?
EDIT: Understood now. Dynamic starts always with 1 instead of 0. Seems crazy once you've learned that mostly everything in programming starts with 0 but yeah, thanks!