Jump to content

plugin not loading

Closed 1.0.7

getting this error when i load plugin Error while compiling: CAltimeter.cs(292,88): error CS1061: Type `MiniCopter' does not contain a definition for `fuelSystem' and no extension method `fuelSystem' of type `MiniCopter' could be found. Are you missing an assembly reference?

Share this comment


Link to comment

Change your function GetFuelAmount  to the following               

 

public int GetFuelAmount() => (entity.GetParentEntity() as MiniCopter)?.GetFuelSystem()?.GetFuelAmount() ?? 0;      

 

Share this comment


Link to comment
437.9k

Downloads

Total number of downloads.

2.3k

Customers

Total customers served.

32.3k

Files Sold

Total number of files sold.

526.1k

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.