so, i am using this famous ban script: (btw, using unity)
using UnityEngine; using PlayFab; public class trytogetbanreason : MonoBehaviour { public void OnLoginFailure(PlayFabError error) { if (error.Error == PlayFabErrorCode.AccountBanned) { foreach (var item in error.ErrorDetails) { Debug.Log("Reason : " + item.Key + "\t" + "Expires : " + item.Value[0]); } } } }
and i want it to show reason, and when it expires in hours not date, is it possible to make it so it displays as text and says something with the lines of "you have been banned for" + reason + "and ban expires in" + hours it may say it there but when i try that it will give me this error: Failed to log in: /Client/LoginWithCustomID: The IP making this request is currently banned
answes?