04.11.2012, 18:53
Well, what I would do is initialize them before hand. Or add another variable to the enum, for example: pIdExist, and initialize that to 0 for the ones that you don't want to exists and so forth.. And when the pickups are placed, this, pIdExist, would change value to 1. Now to debug the problem, I would suggest using "printf" anywhere you find PickupEx, see what happens before going ingame, and after going ingame. Look at the values and see where and how they may change. EX of the printf function, well I am assuming you use a loop to create each pickup, so:
Код:
for(new id=0; id<2000; id++) { printf("PickID: %d | X: %0.2f | Y: %0.2f | Z: %0.2f",id,PickupEx[id][Picx],PickupEx[id][Picy],PickupEx[id][Picz]); }