question

dev@bepex.xyz avatar image
dev@bepex.xyz asked

How do I display the desired error message?

I'm trying to update the contents of the game by reinforcing it. However, I want to prevent users from accessing from the old version, but I didn't put in a code to check past build numbers. Is there a way to fail the login attempt by inserting the desired text when the user attempts to log in?

Currently, only the code that displays the error message when logging in is implemented. Like this,

     else
     {
         errorPopupData.popupContent = "error : " + error.ErrorMessage + " <errorCode" + error.Error + ">";
         PopUp.instance.Initiallize(errorPopupData);
     }
sdks
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Neils Shi avatar image
Neils Shi answered

Since the only way you could block a player from logging in using an available API would be to ban the account. So, you can't fail a user's login by inserting the required text.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.