Hello! I am making a game, and was wondering how would I show a player how long they were banned from ONLY IN HOURS. Here is my code:
if (error.Error == PlayFabErrorCode.AccountBanned)
{
Debug.Log("The user is banned from Funny Apes.");
foreach (var item in error.ErrorDetails)
{
computerManager.ShowErrorMessage("You have been banned from playing Funny Apes.\nReason: " + item.Key + "\n Time Left: " + item.Value[0]);
}
}
else
{
computerManager.ShowErrorMessage("Unable to authenticate with PlayFab. For more info, read our FAQ in our Discord!");
}
Can anyone help me? The current code shows the date, minutes, and hours. How would I make it show it only shows hours? (eg. "You have been banned from Funny Apes. Reason: Testing, Expires: 1h".