Search found 18 matches

by LeMageFou
23 Aug 2011, 10:44
Forum: SFS2X C# API
Topic: Dont get the LOGIN_ERROR
Replies: 14
Views: 18023

When the login fails, I throw a SFSLoginException like this : SFSErrorData errorData = new SFSErrorData(SFSErrorCode.LOGIN_BAD_USERNAME); errorData.addParameter(""); throw new SFSLoginException("", errorData); If I remove the second line, I've got the error on the client side.
by LeMageFou
23 Aug 2011, 08:04
Forum: SFS2X C# API
Topic: Dont get the LOGIN_ERROR
Replies: 14
Views: 18023

Thanks for the extra info Thomas.

I don't have the error anymore when I add server-side a parameter with the SFSErrorData for the SFSLoginException.
by LeMageFou
19 Aug 2011, 16:06
Forum: SFS2X C# API
Topic: Dont get the LOGIN_ERROR
Replies: 14
Views: 18023

Instead of that : public void OnLoginError(BaseEvent e) { Console.WriteLine("Login error: "+(string)e.Params["errorMessage"]); } use this : public void OnLoginError (BaseEvent e) { Debug.Log(SFSErrorCodes.GetErrorMessage((...

Go to advanced search