- Home /
"Takes `2' arguments"
What does this mean, I have this error right now on multiple things and was wondering how to fix it. Here's one for example.
/multiplayerManager.cs(33,17): error CS1501: No overload for method Server_PlayerJoinRequest' Takes
2' arguments
I understand where the error is located I just don't understand what the error is.
Please don't add text like "[SOLVED]" to the title. The proper way to mark a question as solved is to check the round circle underneath the "thumbs down" icon on the answer that solved your issue.
Answer by Dave-Carlile · Feb 14, 2013 at 12:51 PM
What does the method Server_PlayerJoinRequest
look like? The error is stating that you're passing in 2 parameters (arguments) to that method, but the method is defined to take fewer or more than 2. The compiler can't find one that is defined to take exactly 2.
So you're calling the method incorrectly.
Answer by ItsLowee · Feb 14, 2013 at 04:32 PM
I fixed it myself, it had to do with the code giving Server_PlayJoinRequest context.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
CS 1501 and 1061 appear and says No overload for method `Box' takes `1' arguments 1 Answer
Operator '*' cannot be used with a left hand side ....... 1 Answer
Weird collision error when using waypoint script... 1 Answer
Animation spins wildly after completed 0 Answers