Posts: 426
Threads: 56
Joined: Jul 2012
Reputation:
0
Is there a limit on RemoveBuildingForPlayer?
When 3500 were put in (trying to remove trees in los santos/red county), server crashes.
Is there another way to achieve this?
Posts: 1,032
Threads: 2
Joined: Dec 2008
are you using RemoveBuildingForPlayer in onplayerspawn or onplayerconnect?
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
What do you expect it is well known this happens eventually you could probably also reduce the amount of lines significantly by increasing the remove radius to kill many birds with one stone.
Posts: 249
Threads: 26
Joined: Jan 2011
Reputation:
0
Well I increased the radius to 200 which still didn't work.
RemoveBuildingForPlayer(playerid, id, x, y, z, 200.000);
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
It's likely it's just too many objects.
Posts: 724
Threads: 14
Joined: Jul 2012
Reputation:
0
Using it to remove trees is hardly worth it. I only remove things that are an actual inconvenience to normal gameplay.
Posts: 519
Threads: 59
Joined: May 2014
Reputation:
0
Use In OnPlayerRequestClass
Posts: 249
Threads: 26
Joined: Jan 2011
Reputation:
0
Nah OnPlayerRequestClass dosnt works.
Any other ideas on how to bypass this?