Decompiling errors: no
Problem: I need some help with the correct code.
i have a line that saves in character file. Well it looks like:
Player.java code:
PlayerSave.java code:
Code:
} else if (token.equals("DungKC")) {
p.DungKC = Integer.parseInt(token2);
PlayerSave.java code:
Code:
characterfile.write("DungKC = ", 0, 9);
characterfile.write(Integer.toString(p.DungKC), 0, Integer.toString(p.DungKC).length());
characterfile.newLine();
Well, I wanted to know, how can i make the "0" in the character file increase by 1, everytime i do a special action.
I tried this code:
Ok first time I do that action, DungKC increases by "1". Then it doesn't increase. It just stands "1" if i'm doing action again and again...
So, I just wanted to know, why is that?
I think that code is wrong. I need a code that increases the value by "1" everytime I do that action.