Error While Compiling: NPCDropGun.cs (211,76): error CS0023: The '.' operator cannot be applied of type 'IPlayerItemDefinition'
The '.' operator cannot be applied of type 'IPlayerItemDefinition'Fixed
As a temporary fix, you can comment out these lines:
//if (idef.skins2 != null && idef.skins2.Length > 0)
//{
// skins.AddRange(from skin in idef.skins2 where skin != null select skin.id);
//} if (idef.skins2 != null && idef.skins2.Length > 0)
{
skins.AddRange(from skin in idef.skins2 where skin != null select skin.Id);
}
and I get this message
Unloaded plugin NPC Drop Gun v2.0.3 by 2CHEVSKII
(08:06:52) | [NPC Drop Gun] BotSpawn plugin found! Some ammo and loot might not be handled correctly!
(08:06:52) | Loaded plugin NPC Drop Gun v2.0.3 by 2CHEVSKII
but my scientists still don't drop any guns ?
Wulf
This will be fixed in both a new plugin version and Oxide update.
As a temporary fix, you can comment out these lines://if (idef.skins2 != null && idef.skins2.Length > 0) //{ // skins.AddRange(from skin in idef.skins2 where skin != null select skin.id); //}
This does allow the plugin to compile and load, but the NPCs no longer drop their weapons. I have not changed the config file from the previously working version.
ALANMANThis does allow the plugin to compile and load, but the NPCs no longer drop their weapons. I have not changed the config file from the previously working version.
I don't think that would cause the issue.
Wulf
I don't think that would cause the issue.
It seems that others are experiencing this issue also after the workaround is applied.
Error while compiling: NPCDropGun.cs(211,76): error CS1061: Type `IPlayerItemDefinition' does not contain a definition for `Id' and no extension method `Id' of type `IPlayerItemDefinition' could be found. Are you missing an assembly reference?
Any clue whats going on?
The compiler fix is just to fix compiling related to skins, nothing related to how this plugin works otherwise.ALANMANIt seems that others are experiencing this issue also after the workaround is applied.
- 1
- 2