Question by 
               playbarbados · Nov 15, 2015 at 07:05 AM · 
                unity5  
              
 
              the best overload method ...cant seem to get work!!
Hi, I have been trying for hours last night to resolve an error in my script (please see below)
 Assets/uMMO/scripts/controllers/uMMO_NetObject.cs(617,70): error CS1502: The best overloaded method match for `UnityEngine.Input.GetMouseButtonDown(int)' has some invalid arguments
 
               Here is the part of my scrip that has the code....
 bool mousebutton = Input.GetMouseButton(inputName);
                     if (mousebutton != lastInputMouseButton[inputName]) {
                         if (uMMO.get.authoritativeServerSetup)
                             GetComponent<NetworkView>().RPC ("ReceiveInputFromClient",RPCMode.Server,"inputMouseButton",inputName,mousebutton.ToString());
                         inputMouseButton[inputName] = mousebutton;
                         lastInputMouseButton[inputName] = mousebutton;
                     }    
                     if (mousebutton != false) {
                         isLocalClientGeneratingInput = true;        
                     }
 
               Can someone at least point me in the right direction into resolved. Regards K.
               Comment
              
 
               
              is inputName an int or a string? How is it being used in ReceiveInputFromClient? The error sounds like you're trying to pass a string into a Get$$anonymous$$ouseButtonDown. Your script only shows Get$$anonymous$$ouseButton though.
Answer by playbarbados · Nov 15, 2015 at 11:23 AM
You're right...seems like there was a int to string conversion problem ..... I did a int.Parse at the first line... and all the errors went away... like so..
 bool mousebutton = Input.GetMouseButton (int.Parse(inputName));
 
              Your answer