Demolition Bug MFPS 1.6

Report bugs of MFPS 2.0 here
Post Reply
User avatar
altankhan
New Member
New Member
Posts: 1
Joined: Sat Jun 27, 2020 3:31 am

Sat Jun 27, 2020 8:56 am

ERRORS AFTER IMPORTING DEMOLITION v1.0.8 in MFPS v1.6

bl_Demolition.cs(201,9): error CS0246: The type or namespace name 'MFPSPlayer' could not be found

bl_Demolition.cs(201,89): error CS1061: 'bl_GameManager.SceneActors' does not contain a definition for 'Team' and no accessible extension method 'Team' accepting a first argument of type 'bl_GameManager.SceneActors' could be found


ALL OF THE ERRORS ABOVE ARE IN 1 FUNCTION IN BL_DEMOLITION:

Code: Select all

void SelectPlayerToCarrieBomb(out int viewID, out int actorNumber)
    {
        MFPSPlayer[] players = bl_GameManager.Instance.OthersActorsInScene.Where(x => x.Team == terroristsTeam).ToArray();
        if (players.Length <= 0)
        {
            if (PhotonNetwork.LocalPlayer.GetPlayerTeam() == terroristsTeam)
            {
                actorNumber = PhotonNetwork.LocalPlayer.ActorNumber;
                viewID = bl_GameManager.LocalPlayerViewID;
            }
            else
            {
                Debug.Log("There's not players in Terrorist team");
                actorNumber = 0;
                viewID = 0;
            }
        }
        else
        {
            MFPSPlayer p = players[Random.Range(0, players.Length)];
            actorNumber = p.ActorView.Owner.ActorNumber;
            viewID = p.ActorView.ViewID;
        }
    }
User avatar
Lovatto
Admin
Admin
Posts: 1512
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Sat Jun 27, 2020 9:26 am

Hi,

The error is caused because Demolition version 1.0.8 requires MFPS 1.7 at least,
if you want the MFPS 1.6 compatible version of the addon, send me your purchase order number in a PM and I'll provide it there.
Post Reply