Can someone assist me please, my point system isnt saving.. This is PI btw.
Code:
} else if (token.equals("skilling-points")) {
p.skillingPoints = Integer.parseInt(token2);
Code:
characterfile.write("skilling-points = ", 0, 12);
characterfile.write(Integer.toString(p.skillingPoints), 0, Integer.toString(p.skillingPoints).length());
characterfile.newLine();
Code:
if (c.getItems().playerHasItem(390, 30)) { //noted manta
for (int j = 0; j < Server.playerHandler.players.length; j++) {
if (c.getItems().playerHasItem(390,30)) {
c.sendMessage("You recieve 5 skilling points for your donation to the portal.");
c.getItems().deleteItem(390,c.getItems().getItemSlot(390), 30);
c.skillingPoints += 5;
c.getPA().removeAllWindows();
}
}
}
That is my coding in a short term kinda thing.. Can anyone tell me why when you relog it will delete all your skillingPoints?