Pickup deleting problem
#2

hm... thats really odd, coz your code looks good. the only idea i have, is to change this
pawn Код:
DestroyDynamicPickup(AHouseData[i][PickupID]);
into
pawn Код:
if(IsValidDynamicPickup(AHouseData[i][PickupID])
{
new debugstring[128];
format(debugstring,sizeof(debugstring),"old pickup destroyed. id:%d",AHouseData[i][PickupID]);
SendClientMessage(playerid,0xaaaaaaff,debugstring);
DestroyDynamicPickup(AHouseData[i][PickupID]);
}
i suspect the cell AHouseData[i][PickupID] contains 0 atm, so no reference for deleting the old pickup maybe?
oh, while browsing the streamer topic, page 1, i recognized the function to change data directly, by using Streamer_SetIntData(). i never used that function before, but its definetly worth a try, you wont need to change the pickups ID anymore, if it works (hm. i assume it will heh)
Reply


Messages In This Thread
Pickup deleting problem - by thimo - 18.01.2012, 15:06
Re: Pickup deleting problem - by Babul - 18.01.2012, 15:38
Re: Pickup deleting problem - by sabretur - 18.01.2012, 15:40
Re: Pickup deleting problem - by thimo - 25.02.2012, 17:49
Re: Pickup deleting problem - by T0pAz - 25.02.2012, 17:52
Re: Pickup deleting problem - by thimo - 25.02.2012, 17:55
Re: Pickup deleting problem - by T0pAz - 25.02.2012, 18:01
Re: Pickup deleting problem - by thimo - 25.02.2012, 18:02
Re: Pickup deleting problem - by T0pAz - 25.02.2012, 18:05
Re: Pickup deleting problem - by Twisted_Insane - 25.02.2012, 18:10

Forum Jump:


Users browsing this thread: 2 Guest(s)