goodnight hello people , I 'll post a problem that took several days fighting with and you do not know what do to with the solution I tried to copy pieces of code with similar operations and have not gotten more than what you see in the image below . I 'm trying to leave the skills clan organized in the table on the right and when it exceeds the width of the table rather than leapfrog continue straight breaking the width of the table are 35 skill in all that I have and just 13 appear others lost in the table ... , here you will see the image when the clan has skills:
i try to add a counter variable called "cantidad" to count the result in a loop, and it work, but i dont know what to do to make it working fine, look the changes;
int cantidad = 0;
for (L2Skill s : skills.values())
{
String largo = Integer.toString(s.getId());
String largo3 = "0" + largo;
list += SKILL_LIST;
list = list.replace("%clanskills%", "<td align=center><button width=32 height=32 back=\"Icon.skill" + (largo.length() > 3 ? largo : largo3) + "\" fore=\"Icon.skill" + (largo.length() > 3 ? largo : largo3) + "\"></td>");
cantidad++;
if (cantidad == 12)
{
break;
}
}
content = content.replace("%clanskills%", list);
separateAndSend(content, activeChar);
}
when i test , it break the loop when 12 results but how can i do to change line and continue the results till the next change line? sorry for my english,
if anyone knows where the error may be what I will be grateful 've tried everything and no where to take her to repair it , thanks in advance.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Original was based off L2OFF, so how would he even be able to compete or deliver the same quality? It will be just another L2F from shein.
Whatsoever, some times you should just let the horse die.
Bump
NEW USER IN TELEGRAM AND DISCORD IS "mileanum"
NEW USER IN TELEGRAM AND DISCORD IS "mileanum"
NEW USER IN TELEGRAM AND DISCORD IS "mileanum"
NEW USER IN TELEGRAM AND DISCORD IS "mileanum"
Question
b0rto
when i test , it break the loop when 12 results but how can i do to change line and continue the results till the next change line? sorry for my english,
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.