Tehygun Posted June 20, 2018 Posted June 20, 2018 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: But if one are dead, doesn't matter which one, then on the lower show like that, with no colors: 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!
0 melron Posted June 20, 2018 Posted June 20, 2018 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>"); }
0 melron Posted June 20, 2018 Posted June 20, 2018 1 hour ago, Tehygun said: Thank you already fixed.;) locked
Question
Tehygun
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:
But if one are dead, doesn't matter which one, then on the lower show like that, with no colors:
Can anyone help me, please? Adding the code few lines where i made a problem:
Thanks for helping, friends!
3 answers to this question
Recommended Posts