SA-MP Forums Archive
RemoveBuildingForPlayer bug - 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: RemoveBuildingForPlayer bug (/showthread.php?tid=409411)



RemoveBuildingForPlayer bug - BJI4D0KC - 21.01.2013

Hi

There is a bug/not documented limit.
If i remove > 1000 objects with that function, client will freeze (not crash)
If i remove <= 1000 objects, all goes ok.
Please increase limit, or just fix that bug.


Re: RemoveBuildingForPlayer bug - Libra_PL - 21.01.2013

Yeah, it's a bit annoying. I wish I could remove at least 200 objects, because I've got this problem even if I want to delete ~100 of them!


Re: RemoveBuildingForPlayer bug - Vince - 21.01.2013

How about you all check the amount of duplicate model ids? If you were to use that fancy map editor to delete eight identical bushes in an area of 5 by 5 meters you would end up with 8 calls to that function with a range of 0.25 each.

Instead of just calling that function once, with a centralized location and a bigger range.


Re: RemoveBuildingForPlayer bug - BJI4D0KC - 21.01.2013

Quote:
Originally Posted by Vince
Посмотреть сообщение
How about you all check the amount of duplicate model ids? If you were to use that fancy map editor to delete eight identical bushes in an area of 5 by 5 meters you would end up with 8 calls to that function with a range of 0.25 each.

Instead of just calling that function once, with a centralized location and a bigger range.
Thanks for help, but this limit still not documented, it can cause problems in future...


Re: RemoveBuildingForPlayer bug - Nick:D - 21.01.2013

Quote:
Originally Posted by Vince
Посмотреть сообщение
How about you all check the amount of duplicate model ids? If you were to use that fancy map editor to delete eight identical bushes in an area of 5 by 5 meters you would end up with 8 calls to that function with a range of 0.25 each.

Instead of just calling that function once, with a centralized location and a bigger range.
I agree.


Re: RemoveBuildingForPlayer bug - Yiin - 22.01.2013

https://sampforum.blast.hk/showthread.php?tid=396390