characterfile.write("cooksAss = ", 0, 8); replace with
characterfile.write("cooksAss = ", 0, 11);
|
I have recently programmed the 'Cooks assistant' quest into my server and everything is fine apart from the methods in the 'PlayerSave' file.
This is what I added:
and..else if (token.equals("cooksAss")) {
p.cooksAss = Integer.parseInt(token2);
}
but it won't save properly, in the Character's configuration text document it displays the integer as:characterfile.write("cooksAss = ", 0, 8);
characterfile.write(Integer.toString(p.cooksAss), 0, Integer.toString(p.cooksAss).length());
characterfile.newLine();
instead of:cooksAss0
and I can't figure out why.. this is causing the saving problem. I will rep and thank for whoever solves the problem.cooksAss = 0
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |