Jump to content

Question

Posted

Hello i have a problem. Something i made wrong in the code, and now have problems with colors in npc.

If all bosses are alive, then for me colors like that:

d3bbc296f1839a56f6911c77aa34c400774.jpg

But if one are dead, doesn't matter which one, then on the lower show like that, with no colors:

f80987497666825d264d45650d13fbac986.jpg

Can anyone help me, please? Adding the code few lines where i made a problem:

            if (delay <= System.currentTimeMillis())
                sb.append("" + name + ": <font color=\"00ff00\">Is Alive!</font><br1>");
            else
            {
                sb.append("" + name + ": <font color=\"ffffff\">"+ "" + "<font color=\"FF0000\"> " + new SimpleDateFormat("dd-MM-yyyy HH:mm").format(delay) + "</font><br>");
            }
        }

Thanks for helping, friends! 

3 answers to this question

Recommended Posts

  • 0
Posted

you had 2 font colors while closing only 1

if (delay <= System.currentTimeMillis())
    sb.append(name + ": <font color=\"00ff00\">Is Alive!</font><br1>");
else
{
    sb.append(name + ": <font color=\"FF0000\">" + new SimpleDateFormat("dd-MM-yyyy HH:mm").format(delay) + "</font><br1>");
}

 

Guest
This topic is now closed to further replies.


×
×
  • Create New...