[Help] RemoveBuilding Errors
#10

Quote:
Originally Posted by Vince
Посмотреть сообщение
Quote:
Originally Posted by SoFahim
Посмотреть сообщение
You can use anywhere in the
Код:
RemoveBuildingFromPlayer(playerid) 
 {
blah blah blah
}
After that You just need to add RemoveBuildingFromPlayer(playerid); in GameModeInit to remove the Objects.

I am working in this ststem. It works fine
Yeah, right. ಠ_ಠ
You probably did something silly like "new playerid". When OnGameModeInit is called there are no players connected hence you can't remove a building for a(ny) player at that point.
As Vince said this won't work.
If you have "new playerid;" in OnGameModeInit and used RemoveBuildingForPlayer here you won't get any errors but this won't work in-game.
This function simply have to be added under OnPlayerConnect.
BigGreen may added his code under OnGameModeInit callback and that's the reason for getting this error.
Reply


Messages In This Thread
[Help] RemoveBuilding Errors - by BigGreen - 15.06.2015, 10:24
Re: [Help] RemoveBuilding Errors - by Konstantinos - 15.06.2015, 10:27
Re: [Help] RemoveBuilding Errors - by SoFahim - 15.06.2015, 10:29
Re: [Help] RemoveBuilding Errors - by J0sh... - 15.06.2015, 10:31
Re: [Help] RemoveBuilding Errors - by Ritzy2K - 15.06.2015, 10:45
Re: [Help] RemoveBuilding Errors - by BigGreen - 15.06.2015, 10:53
Re: [Help] RemoveBuilding Errors - by mamorunl - 15.06.2015, 11:13
Re: [Help] RemoveBuilding Errors - by SoFahim - 15.06.2015, 12:09
Re: [Help] RemoveBuilding Errors - by Vince - 15.06.2015, 12:17
Re: [Help] RemoveBuilding Errors - by Darkwood17 - 15.06.2015, 13:15

Forum Jump:


Users browsing this thread: 1 Guest(s)