07.02.2014, 14:11
Right, this is NOT a problem related to 0.3z, but I don't see that as a reason to reject this bug report, especially since Kalcor said he would fix some existing bugs. So please don't come here and tell me that, thanks.
Basically, if you use RemoveBuildingForPlayer in your script twice for the same object, the game will freeze. You might say something like 'then don't do it', but this really becomes an issue after a server restart. Like many others I use RemoveBuildingForPlayer in OnPlayerConnect. So if a player was connected before the restart, and stays connected during the restart, he will experience game freezing when OnPlayerConnect is called. This is because removed objects stay removed for the given player, even after a restart.
It's hard to find a good PAWN-scripted system that distinguishes the players who were already connected from the newly connected players, though it can be done. This however is far from ideal.
I really think this should be fixed. RemoveBuildingForPlayer shouldn't do anything when called if the object is already removed. It would be a real step forward to see this one fixed, I'm sure a lot of scripters feel the same.
Greetz,
Danny
Basically, if you use RemoveBuildingForPlayer in your script twice for the same object, the game will freeze. You might say something like 'then don't do it', but this really becomes an issue after a server restart. Like many others I use RemoveBuildingForPlayer in OnPlayerConnect. So if a player was connected before the restart, and stays connected during the restart, he will experience game freezing when OnPlayerConnect is called. This is because removed objects stay removed for the given player, even after a restart.
It's hard to find a good PAWN-scripted system that distinguishes the players who were already connected from the newly connected players, though it can be done. This however is far from ideal.
I really think this should be fixed. RemoveBuildingForPlayer shouldn't do anything when called if the object is already removed. It would be a real step forward to see this one fixed, I'm sure a lot of scripters feel the same.
Greetz,
Danny