RemoveBuildingForPlayer isn't working. Why?
#1

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?
Reply
#2

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

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

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

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

OT:

Put it OnPlayerConnect
Reply
#6

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

Rep me.
Reply
#8

@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.
Reply
#9

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


Forum Jump:


Users browsing this thread: 1 Guest(s)