[BUG] Pickups
#10

Even if you don't GMX, this problem can still be caused by IDs getting over-written:

pawn Код:
new pickup1, pickup2;

pickup1 = CreatePickup(blah);

DestroyPickup(pickup1);

pickup2 = CreatePickup(blah);
The 'pickup1' and 'pickup2' variables are the SAME value, so both of these are true:

pawn Код:
if(pickupid == pickup1)

if(pickupid == pickup2)
I guess the only way to solve this would be for you to make a variable to store whether it is created or not:

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;
The 'pickup1' and 'pickup2' variables are the SAME value still, but this time pickup1_created is 0

pawn Код:
if(pickupid == pickup1 && pickup1_created)

if(pickupid == pickup2 && pickup2_created)
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.
Reply


Messages In This Thread
[BUG] Pickups - by Dripac - 29.03.2012, 19:33
Re: [BUG] Pickups - by ][Noname][ - 29.03.2012, 20:24
Re: [BUG] Pickups - by MP2 - 29.03.2012, 20:24
AW: [BUG] Pickups - by FufLa - 29.03.2012, 20:47
Re: AW: [BUG] Pickups - by Dripac - 29.03.2012, 20:50
AW: [BUG] Pickups - by FufLa - 29.03.2012, 20:54
Re: [BUG] Pickups - by WackoX - 29.03.2012, 21:22
Re: [BUG] Pickups - by Skribblez - 30.03.2012, 01:32
Re: [BUG] Pickups - by Jochemd - 30.03.2012, 05:26
Re: [BUG] Pickups - by MP2 - 30.03.2012, 11:27

Forum Jump:


Users browsing this thread: 1 Guest(s)