SA-MP Forums Archive
RemovePlayerBuilding - 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: RemovePlayerBuilding (/showthread.php?tid=616625)



RemovePlayerBuilding - Gotham - 08.09.2016

Hi guys,

I'm getting an error:
Код:
error 017: undefined symbol "playerid"
This is where I think it is caused:
Код:
public OnGameModeInit()
{



    RemoveBuildingForPlayer(playerid, 3343, -905.0000, 1541.0547, 24.8672, 0.25);
    RemoveBuildingForPlayer(playerid, 3168, -905.0000, 1541.0547, 24.8672, 0.25);
    CreateObject(3279, -904.13177, 1556.76294, 25.69925,   0.00000, 0.00000, -1.14000);
    CreateObject(3279, -904.50873, 1531.69141, 24.73063,   0.00000, 0.00000, 0.00000);
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}
Please Help


Re: RemovePlayerBuilding - Gotham - 08.09.2016

Quote:
Originally Posted by Dice_
Посмотреть сообщение
Put them OnPlayerConnect(playerid);
PHP код:
public OnPlayerConnect(playerid);
{
    
RemoveBuildingForPlayer(playerid3343, -905.00001541.054724.86720.25);
    
RemoveBuildingForPlayer(playerid3168, -905.00001541.054724.86720.25);
    return 
1;

Didn't work

Код:
public OnPlayerConnect(playerid)
{
    RemoveBuildingForPlayer(playerid, 3343, -905.0000, 1541.0547, 24.8672, 0.25);
    RemoveBuildingForPlayer(playerid, 3168, -905.0000, 1541.0547, 24.8672, 0.25);
    return 1;
}



Re: RemovePlayerBuilding - Gotham - 08.09.2016

Sorry ,

Thanks @Dice_ , It worked, I forgot to remove it from

OnGameModeInit()