RemovePlayerBuilding
#1

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

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;
}
Reply
#3

Sorry ,

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

OnGameModeInit()
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)