HandyMan - Failed to compile: HandyMan.cs(295,28): error CS1501: No overload for method `OnRepairFailed' takes `0' arguments
No overload for method `OnRepairFailed' takes `0' argumentsFixed
Delete all "entity.OnRepairFailed()" in .cs
nearly same error just mine says 1 arguments instead of 0
Same here:
Error while compiling: HandyMan.cs(295,28): error CS1501: No overload for method `OnRepairFailed' takes `0' argumentsI unloaded HandyMan, removed the OnRepairFailed lines from the .cs like Arainrr said to do, and it loaded up without error.

RyanFromRust
Same here:
Error while compiling: HandyMan.cs(295,28): error CS1501: No overload for method `OnRepairFailed' takes `0' argumentsI unloaded HandyMan, removed the OnRepairFailed lines from the .cs like Arainrr said to do, and it loaded up without error.
thanks for the pic, i actually missed one. and once i seen ur pic and removed the last one. it it worked perfectly! thank you!
Simle fix.
Replace:
Merged post
Full fix:
===
Replace:
entity.OnRepairFailed();to
entity.OnRepairFailed(null, null);Merged post
Full fix:
if (entity.SecondsSinceAttacked <= lastAttackLimit)
{
entity.OnRepairFailed();
return false;
}to if (entity.SecondsSinceAttacked <= lastAttackLimit)
{
entity.OnRepairFailed(player, string.Format("Unable to repair: Recently damaged. Repairable in: {0:N0}s.", lastAttackLimit - entity.SecondsSinceAttacked));
return false;
}===
if (num <= 0f || num2 <= 0f)
{
entity.OnRepairFailed();
return false;
}to if (num <= 0f || num2 <= 0f)
{
entity.OnRepairFailed(player, "Unable to repair: Not damaged.");
return false;
}===
if (num4 <= 0f)
{
entity.OnRepairFailed();
return false;
}to if (num4 <= 0f)
{
entity.OnRepairFailed(player, "Unable to repair: Insufficient resources.");
return false;
} Error while compiling: HandyMan.cs(295,28): error CS1501: No overload for method `OnRepairFailed' takes `0' arguments
Command isn't recognized, so I
- reloaded the plugin. I get no response.
- I reloaded another plugin and I do.
- I tried renaming the .cs file and then renaming it back, but I still get no response in the console.
- I renamed all the files, redownloaded the plugin and replaced it, but I still get no response.
What do you get no response with?
I'm using Battlemetrics.
I do get responses with other plugins.
I do get responses with other plugins.
Did you check your logs for information/errors? You would get a response regardless, so if something is going on, it'll be in the log files.
Duh, thanks. Not sure why I didn't check the logs. Here's what I'm seeing
07:42 [Error] Error while compiling: HandyMan.cs(295,28): error CS1501: No overload for method `OnRepairFailed' takes `0' arguments Bumfuzzler
Duh, thanks. Not sure why I didn't check the logs. Here's what I'm seeing07:42 [Error] Error while compiling: HandyMan.cs(295,28): error CS1501: No overload for method `OnRepairFailed' takes `0' arguments
The plugin is restored from the dead.
Locked automatically