How would i make this code work
How would i make this work? Right now it is set so when you log off no matter what height your at you are reset to height level 0. Well i want to make it so in godwars it just sets the height to what you currently are. This is what i currently have but i keep getting errors:
Code:
try {
if (godWarsDung()) heightLevel = this.heightLevel;
Engine.fileManager.saveCharacter(this);
else if (heightLevel != 0) heightLevel = 0;
Engine.fileManager.saveCharacter(this);
} catch (Exception e) {
}
if (pTrade.getPartner() != null) {
pTrade.declineTrade();
}
disconnected[1] = true;
}