20.12.2009, 14:42
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:
How I can fix it?
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);