Jump to content

CS1061 Error

Closed 1.0.72

Mako
Mako

Posted

Hey,

Tried to update to the most recent version today and cannot compile the plugin. I am getting this message:

Error while compiling: NoDecay.cs(137,25): error CS1061: Type `BasePlayer' does not contain a definition for `IPlayer' and no extension method `IPlayer' of type `BasePlayer' could be found. Are you missing an assembly reference?

Does this mean anything to anybody? The guys n gals on the server are wondering when they are gonna feel safe going to bed again 🙂

RFC1920

Posted

That's been in the plugin for at least a month or so and should still be valid and not changed this month as far as I know.  player.IPlayer is used in several plugins as well.  Hopefully your oxide is up to date and the right version for Windows/Linux.

Mako

Posted

I have recently updated to Win 11 which may have caused it but other plugins seem to have updated fine. Can you give me an idea of w hat it means?

RFC1920

Posted

IPlayer is an object that is connected to all player objects (BasePlayer), at least if they are actual players and not NPCs.  But, even for NPCs it would not throw a compiler error but instead might show a different error altogether if not considered as a possibility in the plugin.  For it to show this error seems to imply that the game libraries don't know about that object, which is pretty weird.

The best advice I can give is to validate your server files and reinstall oxide.

RFC1920

Posted

FWIW I will update the plugin code to simplify that call.  But, since you are the only one reporting this issue I want to see if you are able to fix it on your own by validating your files first.

RFC1920

Posted

Changed Status from Pending to Closed

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

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.