What does this ambigious error mean?


Errors:
+ Customs/my scripts/airship/Airship.cs:
CS0121: Line 209: The call is ambiguous between the following methods or properties: 'Server.Multis.BaseBoat.BaseBoat(Server.Direction)' and 'Server.Multis.BaseBoat.BaseBoat(Server.Serial)'
CS0122: Line 1554: 'Server.Multis.BaseBoat.m_IlshWrap' is inaccessible due to its protection level
CS0122: Line 1556: 'Server.Multis.BaseBoat.m_TokunoWrap' is inaccessible due to its protection level
CS0122: Line 1558: 'Server.Multis.BaseBoat.m_BritWrap' is inaccessible due to its protection level
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


public Airship(Direction direction)
: this(direction, false)
{
}
public Airship(Direction direction, bool isClassic)
: base(0x0)
{

public Airship(Serial serial)
: base(serial)
{
}
 
Code:
public Airship(Direction direction)
: this(direction, false)
{
}

public Airship(Direction direction, bool isClassic)
: base(0x0)
{
} // <<< this was missing?

public Airship(Serial serial)
: base(serial)
{
}

CS0122: Line 1554: 'Server.Multis.BaseBoat.m_IlshWrap' is inaccessible due to its protection level
CS0122: Line 1556: 'Server.Multis.BaseBoat.m_TokunoWrap' is inaccessible due to its protection level
CS0122: Line 1558: 'Server.Multis.BaseBoat.m_BritWrap' is inaccessible due to its protection level

Try without m_, or make those fields 'protected' or 'public'.
 
No that's not the solution to the ambigious error. The entire code is:

public Airship(Direction direction)
: this(direction, false)
{
}
public Airship(Direction direction, bool isClassic)
: base(0x0)
{
m_DecayTime = DateTime.UtcNow + BoatDecayDelay;
m_Decay = true;
Facing = direction;
Layer = Layer.Mount;
m_Anchored = false;
m_VirtualMount = new BoatMountItem(this);
if (isClassic)
{
m_TillerMan = new TillerMan(this);
m_PPlank = new Plank(this, PlankSide.Port, 0);
m_SPlank = new Plank(this, PlankSide.Starboard, 0);
m_PPlank.MoveToWorld(new Point3D(X + PortOffset.X, Y + PortOffset.Y, Z), Map);
m_SPlank.MoveToWorld(new Point3D(X + StarboardOffset.X, Y + StarboardOffset.Y, Z), Map);
m_Hold = new Hold(this);
UpdateComponents();
}
m_NextNavPoint = -1;
Movable = false;
m_Instances.Add(this);
}
public Airship(Serial serial)
: base(serial)
{
}
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back