Map error
#6

Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
RemoveBuildingForPlayer explicitly tells you that it is meant for a player: https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer

It should either be under OnPlayerConnect or in a for-loop. I recommend to put it under OnPlayerConnect unless you're trying to do something else.
No in a for-loop because RemoveBuildingForPlayer() function remove the building selected WHEN the player connect to the server. So if you put a for-loop in OnGamemodeInit the Building return an INVALID PLAYER ID and function don't work.
Reply


Messages In This Thread
Map error - by Progamerisrael1 - 23.03.2016, 12:43
Re: Map error - by AndySedeyn - 23.03.2016, 12:51
Re: Map error - by Progamerisrael1 - 23.03.2016, 13:18
Re: Map error - by CalvinC - 23.03.2016, 13:19
Re: Map error - by Progamerisrael1 - 23.03.2016, 13:56
Re: Map error - by YouServ - 23.03.2016, 14:27
Re: Map error - by AndySedeyn - 23.03.2016, 20:01

Forum Jump:


Users browsing this thread: 1 Guest(s)