View Single Post
Old 03/01/2014, 04:41 AM   #1
Dr.Einstein
Huge Clucker
 
Dr.Einstein's Avatar
 
Join Date: Oct 2012
Posts: 233
Reputation: 130
Default RemoveBuildingForPlayer - crash if player reconnects

OK, so this is very weird. I have placed on OnPlayerConnect the function to remove the buildings for players. If a player loses connection and reconnects, that player's game will either crash or freeze. I did a lot of tests with this and still the game got stuck. I called the function once on OnPlayerSpawn but that still crashed me after I 'gmxed' the server. I also used a timer for this, but it gave me the same result. Moreover, I ran the function only one time for each player, meaning the first time the player connects, but the second time of connection, the server doesn't remove the objects.

PS: There are at least 600 objects that get removed.
Dr.Einstein is offline   Reply With Quote