SA-MP Forums Archive
RemoveBuildingForPlayer isn't working. Why? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: RemoveBuildingForPlayer isn't working. Why? (/showthread.php?tid=384959)



RemoveBuildingForPlayer isn't working. Why? - ShawtyyMacJunior - 13.10.2012

In the callback, OnGameModeInit, I have these codes.

Код:
RemoveBuildingForPlayer(playerid, 4057, 1479.5547, -1693.1406, 19.5781, 0.25);
	RemoveBuildingForPlayer(playerid, 4210, 1479.5625, -1631.4531, 12.0781, 0.25);
They work, but the problem is they only do it for the first person to log in. The other people that login the buildings dont remove for them.

Whats the problem?


Re: RemoveBuildingForPlayer isn't working. Why? - JhnzRep - 13.10.2012

You have to put it under OnPlayerConnect, instead of OnGameModeInit.


Re: RemoveBuildingForPlayer isn't working. Why? - Joshman543 - 14.10.2012

Make sure you simply have the RemoveBuilidngForPlayer.inc in your include file> Pawno.
Hope this helps,
Josh


Re: RemoveBuildingForPlayer isn't working. Why? - Joshman543 - 14.10.2012

https://sampforum.blast.hk/showthread.php?pid=1551937#pid1551937
Here is the link.


Re: RemoveBuildingForPlayer isn't working. Why? - JaKe Elite - 14.10.2012

Why you need RemoveBuilding.inc if there is already a native SAMP Function of it?

OT:

Put it OnPlayerConnect


Re: RemoveBuildingForPlayer isn't working. Why? - Joshman543 - 14.10.2012

I have had that problem, and it is so the function add's to the global object count.


Re: RemoveBuildingForPlayer isn't working. Why? - Joshman543 - 14.10.2012

Rep me.


Re: RemoveBuildingForPlayer isn't working. Why? - JaKe Elite - 14.10.2012

@Joshman543

First of all why he should rep you.

You didn't even explain anything from him.
You also double post, You could just do edit instead of double posting.


Re: RemoveBuildingForPlayer isn't working. Why? - Joshman543 - 14.10.2012

The function is explained within the link, and you stick to your ways I will stick to mine.
Thanks.