Can't Remove Building From Includes
#7

Quote:
Originally Posted by Speaker
Посмотреть сообщение
When I Put RemoveBuildingForPlayer Under On Player Connect Game Crashes While Reconnecting After Server Restart.So i Thought Of Putting It Under On Gamemodinit
Yes the player will crash if you try to remove the same object twice, this happens when you restart the server and a player reconnects.

From wiki: When removing the same object for a player, they will crash. Commonly, players crash when reconnecting to the server because the server removes buildings on OnPlayerConnect.
https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer

As far as I know there is no clean way of remedying this, have a read of this thread, it may help you:
https://sampforum.blast.hk/showthread.php?tid=485132&page=2

The first parameter of RemoveBuildingForPlayer is the playerid, so you're probably best not to place it under OnGameModeInit.
Reply


Messages In This Thread
Can't Remove Building From Includes - by Speaker - 31.12.2017, 13:33
Re: Can't Remove Building From Includes - by MEW273 - 31.12.2017, 13:57
Re: Can't Remove Building From Includes - by Ritzy2K - 31.12.2017, 14:01
Re: Can't Remove Building From Includes - by MEW273 - 31.12.2017, 14:06
Re: Can't Remove Building From Includes - by Speaker - 31.12.2017, 14:06
Re: Can't Remove Building From Includes - by Speaker - 31.12.2017, 14:08
Re: Can't Remove Building From Includes - by MEW273 - 31.12.2017, 14:17
Re: Can't Remove Building From Includes - by RogueDrifter - 31.12.2017, 14:17
Re: Can't Remove Building From Includes - by MEW273 - 31.12.2017, 14:22
Re: Can't Remove Building From Includes - by RogueDrifter - 31.12.2017, 14:53

Forum Jump:


Users browsing this thread: 1 Guest(s)