30.03.2012, 11:27
Even if you don't GMX, this problem can still be caused by IDs getting over-written:
The 'pickup1' and 'pickup2' variables are the SAME value, so both of these are true:
I guess the only way to solve this would be for you to make a variable to store whether it is created or not:
The 'pickup1' and 'pickup2' variables are the SAME value still, but this time pickup1_created is 0
There's really nothing Kalcor himself can do about this, it's up to you.
As for the GMX bug, I am yet to test it, but I do know that filterscripts do not unload during a GMX - resetting the pickups in them would break them, but they still need to run along-side the gamemode. It just needs making so game-modes don't take the IDs of already taken pickups.
pawn Код:
new pickup1, pickup2;
pickup1 = CreatePickup(blah);
DestroyPickup(pickup1);
pickup2 = CreatePickup(blah);
pawn Код:
if(pickupid == pickup1)
if(pickupid == pickup2)
pawn Код:
new pickup1, pickup2;
new pickup1_created, pickup2_created;
pickup1 = CreatePickup(blah);
pickup1_created = 1;
DestroyPickup(pickup1);
pickup1_created = 0;
pickup2 = CreatePickup(blah);
pickup2_created = 1;
pawn Код:
if(pickupid == pickup1 && pickup1_created)
if(pickupid == pickup2 && pickup2_created)
As for the GMX bug, I am yet to test it, but I do know that filterscripts do not unload during a GMX - resetting the pickups in them would break them, but they still need to run along-side the gamemode. It just needs making so game-modes don't take the IDs of already taken pickups.