Can't destroy dynamic pickups - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Can't destroy dynamic pickups (
/showthread.php?tid=601922)
Can't destroy dynamic pickups -
WhoIsYourDaddy - 28.02.2016
I can't destroy a dynamic pickup. See below;
PHP код:
DestroyDynamicPickup(BusinessData[bizid][bizPickup]);
It always stands where it was. I want it to be disappeared and create another pickup but first pickup doesn't get destroyed. Anyone know this bug? Or is there a function to change/update the dynamic pickup?
Re: Can't destroy dynamic pickups -
WhoIsYourDaddy - 28.02.2016
Bump.
Re: Can't destroy dynamic pickups -
ikey07 - 28.02.2016
maybe BusinessData[bizid][bizPickup] value gets updated elsewhere? or you create a new pickup before destroying the old one.
Re: Can't destroy dynamic pickups -
WhoIsYourDaddy - 28.02.2016
Quote:
Originally Posted by ikey07
maybe BusinessData[bizid][bizPickup] value gets updated elsewhere? or you create a new pickup before destroying the old one.
|
I put this function before I create another one. And that value doesn't get updated somewhere else.
Re: Can't destroy dynamic pickups -
WhoIsYourDaddy - 28.02.2016
I debugged it, pickup id was 1 which is businessID+1. But the problem is when I delete it using DestroyDynamicPickup or DestroyPickup, it doesn't disappear. By the way, pickup type is 23.
Re: Can't destroy dynamic pickups -
WhoIsYourDaddy - 29.02.2016
Bump