Posts: 145
Threads: 14
Joined: Aug 2012
Hello there. There is problem with RemoveObjectForPlayer function. After removing ~1100 objects samp client freezes. Is there any limit for objects removing, or something else?
Posts: 1,167
Threads: 57
Joined: Jul 2010
Reputation:
0
I had same problem, just remove only most needed objects and dont use that function under OnPlayerSpawn, each time player dies orso and spawns game will remove objs again and after 2~3 times your game will just freeze aswell
Posts: 145
Threads: 14
Joined: Aug 2012
Quote:
Originally Posted by ikey07
I had same problem, just remove only most needed objects and dont use that function under OnPlayerSpawn, each time player dies orso and spawns game will remove objs again and after 2~3 times your game will just freeze aswell
|
yea, i know, so i use it only on player login. And wiki doesnt say anything about that limit..
Posts: 578
Threads: 10
Joined: Nov 2012
Reputation:
0
Same. I got same problem also...
Posts: 592
Threads: 10
Joined: Jul 2012
Reputation:
0
As said before don't remove unnecessary buildings/objects. I don't think there is a limit but precautions should be taken
Posts: 145
Threads: 14
Joined: Aug 2012
Quote:
Originally Posted by Vin Diesel
|
RemoveBuildingForPlayer / RemoveObjectForPlayer it makes no sense, just a typo ..
Posts: 815
Threads: 127
Joined: May 2011
Reputation:
0
Remove objects under OnPlayerConnect. Difference with RemoveBuildingForPlayer and RemoveObjectForPlayer ? Well Removing buildings using the function RemoveBuildingForPlayer helps reduce RemoveObjectForPlayer which I believe you use buildings? or maybe not. Limit? I think there is no limit but as what as Djean said be careful and precaution .