[HELP]Pickup
#1

I have a problem with pickups.When you stand on the pickup he disappears and does not respawn.
I use Model:2-Pickupable, respawns after some time.

Code:
Код:
	for(new h = 0; h < sizeof(HouseInfo); h++)
	{
		if(HouseInfo[h][hOwned] == 0)
		{
			AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
			pickups++;
		}
		if(HouseInfo[h][hOwned] == 1)
		{
			AddStaticPickup(1239, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
			pickups++;
		}
	}
	for(new h = 0; h < sizeof(BizzInfo); h++)
	{
		if(BizzInfo[h][bOwned] == 0)
		{
			AddStaticPickup(1272, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
			pickups++;
		}
		if(BizzInfo[h][bOwned] == 1)
		{
			AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
			pickups++;
		}
	}
	for(new h = 0; h < sizeof(SBizzInfo); h++)
	{
		if(SBizzInfo[h][sbOwned] == 0)
		{
			AddStaticPickup(1272, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
			pickups++;
		}
		if(SBizzInfo[h][sbOwned] == 1)
		{
			AddStaticPickup(1239, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
			pickups++;
		}
	}
	AddStaticPickup(1239, 2, 359.0520,182.4331,1008.3828,-1);
	AddStaticPickup(1239, 2, 358.6790,166.4534,1008.3828,-1);
	AddStaticPickup(1239, 2, 1472.112304,-1265.387817,14.562500,-1);
	AddStaticPickup(1239, 2, 2229.5303,-1721.7758,13.5662,-1); 
	AddStaticPickup(1239, 2, 2309.6331,-1643.7435,14.8270,-1);
	pickups=pickups+29;
	printf("Pickups Max = 100, Current Pickups = %d",pickups);
How I can fix it?
Reply
#2

Hmm... weird. You can set a timer, to respawn it, if you cannot fix it...
Reply
#3

I know, I would prefer to fix it.

Does anyone know how??
Reply
#4

Try using type #23, this way it's shown all the time. I always use that one.
https://sampwiki.blast.hk/wiki/CreatePic...e_Pickup_Types
Reply
#5

Does not work, some another solution?

Please!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)