Jump to content

CS1061 Error

Closed 1.0.72

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 🙂

Share this comment


Link to comment

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.

Share this comment


Link to comment

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?

Share this comment


Link to comment

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.

Share this comment


Link to comment

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.

Share this comment


Link to comment
350.8k

Downloads

Total number of downloads.

1.8k

Customers

Total customers served.

24.1k

Files Sold

Total number of files sold.

374.4k

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.