Hey guys, Im newer to playfab and im trying to just create a simple player login and register screen. Im following along with one of the webinars done in the past. My problem arises when i get these two error messages.
Error #1: Assets/Scenes/Scripts/LoginManager.cs(28,20): error CS1502: The best overloaded method match for `PlayFab.PlayFabClientAPI.LoginWithPlayFab(PlayFab.ClientModels.LoginWithPlayFabRequest, System.Action<PlayFab.ClientModels.LoginResult>, System.Action<PlayFab.PlayFabError>, object, System.Collections.Generic.Dictionary<string,string>)' has some invalid arguments
Error #2: Assets/Scenes/Scripts/LoginManager.cs(28,52): error CS1503: Argument `#2' cannot convert `void' expression to type `System.Action<PlayFab.ClientModels.LoginResult>'
And here is the code i've written
.
public void Login() { var loginRequest = new LoginWithPlayFabRequest () { TitleId = PlayFabSettings.TitleId, Username = userName.text, Password = passWord.text }; PlayFabClientAPI.LoginWithPlayFab (loginRequest, loginDisplay() , print("Login faliure")); }
Could this be a problem with my PlayFab SDK instalation? I feel i have a decent grasp of how you write the api so im 75% sure its not my code...
Thanks in advance!
-Morgan