No overload for method `OnRepairFailed' takes `0' argumentsFixed
Trillz

HandyMan - Failed to compile: HandyMan.cs(295,28): error CS1501: No overload for method `OnRepairFailed' takes `0' arguments

Arainrr

Delete all "entity.OnRepairFailed()" in .cs
hamstar
nearly same error just mine says 1 arguments instead of 0
RyanFromRust

Same here:

Error while compiling: HandyMan.cs(295,28): error CS1501: No overload for method `OnRepairFailed' takes `0' arguments

I unloaded HandyMan, removed the OnRepairFailed lines from the .cs like Arainrr said to do, and it loaded up without error.

hamstar
5d66db4201195.jpg?uid=5d66db72ac9cd RyanFromRust

Same here:

Error while compiling: HandyMan.cs(295,28): error CS1501: No overload for method `OnRepairFailed' takes `0' arguments

I 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!

rostov114

Simle 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;
                }​
Akeno
Error while compiling: HandyMan.cs(295,28): error CS1501: No overload for method `OnRepairFailed' takes `0' arguments
Bumfuzzler
Command isn't recognized, so I
  1. reloaded the plugin. I get no response.
  2. I reloaded another plugin and I do.
  3. I tried renaming the .cs file and then renaming it back, but I still get no response in the console. 
  4. I renamed all the files, redownloaded the plugin and replaced it, but I still get no response.
What could this be? Is this an issue with the plugin or something I'm missing?
Wulf
uMod Admin
What do you get no response with?
Bumfuzzler
I'm using Battlemetrics. 

I do get responses with other plugins. 
Wulf
uMod Admin
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.
Bumfuzzler
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​
Arainrr

5b7ff3b605218.png Bumfuzzler
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​
rostov114

The plugin is restored from the dead.