- Joined
- Jul 7, 2007
- Messages
- 22
Hey all,
I was thinking today about my ID system -- it's a "stupid" system and doesn't fill gaps when a unit dies. Basically I just add 1 to a counter each time a unit enters the map -yes I know I am a bad boy-, set that unit's custom value to the counter, and set udg_id_unit[#] to that unit. But I have quite a few units who enter and are removed from the map. What is the maximum bit that this can go up to?
Thanks and sorry if this is a dumb question...
Extra credit question: Why is it that some arrays MUST be set a size, but other array vars you can leave at just [1] and it will enumerate seemingly indefinitely?
I was thinking today about my ID system -- it's a "stupid" system and doesn't fill gaps when a unit dies. Basically I just add 1 to a counter each time a unit enters the map -yes I know I am a bad boy-, set that unit's custom value to the counter, and set udg_id_unit[#] to that unit. But I have quite a few units who enter and are removed from the map. What is the maximum bit that this can go up to?
Thanks and sorry if this is a dumb question...
Extra credit question: Why is it that some arrays MUST be set a size, but other array vars you can leave at just [1] and it will enumerate seemingly indefinitely?