SA-MP Forums Archive
RemoveBuildingForPlayer and server crash problem - 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 and server crash problem (/showthread.php?tid=609076)



RemoveBuildingForPlayer and server crash problem - Ult1mate - 08.06.2016

Hi. This is my big problem.
I removed 60 GTA:SA objects, only in certain regions server crashes.
for example, four dragon casino building object removed, later server connect and go to /fourdragon command or go to only in that region(casino area) server crashed. The same problem chilliad, cranberry station, old airport etc. available : /
Is there a way to fix this problem ? Sorry i'm bad English.


Re: RemoveBuildingForPlayer and server crash problem - TwinkiDaBoss - 08.06.2016

I know that sometimes if you remove a garage (modding garage, pay'n'spray) any sort of garages with working doors in SP can cause crashes. I hope it helps


Re: RemoveBuildingForPlayer and server crash problem - Ult1mate - 08.06.2016

Quote:
Originally Posted by TwinkiDaBoss
Посмотреть сообщение
I know that sometimes if you remove a garage (modding garage, pay'n'spray) any sort of garages with working doors in SP can cause crashes. I hope it helps
First, thanks for your answer.
Yes, e.g. army big hangar doors remove crashes but not move object chilliad(mountain), building etc. like this object crash problem.
What do you use RemoveBuildingForPlayer radius value ?

Код:
RemoveBuildingForPlayer( playerid, modelid, x, y, z, radius = ? );



Re: RemoveBuildingForPlayer and server crash problem - Ult1mate - 08.06.2016

Help.


Re: RemoveBuildingForPlayer and server crash problem - BornHuman - 08.06.2016

The radius should be 0. If you are removing common objects with a huge radius then the server is going to remove a lot of objects. 1000 is the current limit on removes and if you go over then when a player connects the server will crash.