Dispear - 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: Dispear (
/showthread.php?tid=544967)
Dispear -
StR_MaRy - 05.11.2014
hi guys why my staticpickup disapear when i go closer ?
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(1272, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
}
i put it on public onpropupdate and ongamemodeinit, ongamemodeinit will not disapear but will not change 1273 to 1272 will stay same pickup id and on onpropupdate will change but will disapear when i will go closer
Re: Dispear -
Runn3R - 05.11.2014
Use CreateDynamicPickup();