come on not 1 comment .....
|
ok after doing fixing up everything finally got the fucking command to work before when I had issue with it, it saved perfectly but when I fixed the glitch now it doesn't seem to save when everything in playersave is handled correctly...... this happens when they log out everything else still saves though.
TYVM REP
PlayerSave.java Code
Code:} else if (line.startsWith("KC")) { p.KC = Integer.parseInt(token2); } else if (line.startsWith("DC")) { p.DC = Integer.parseInt(token2);Code:characterfile.write("KC: ", 0, 4); characterfile.write(Integer.toString(p.KC), 0, Integer.toString(p.KC).length()); characterfile.newLine(); characterfile.write("DC: ", 0, 4); characterfile.write(Integer.toString(p.DC), 0, Integer.toString(p.DC).length());
Nice mate, gonna try it out and edit it into a system i have.
well I realised it saves now but once the person loggs in it resets I think and I mean the actual amount of KC and DC so say like I just got 3 kills and 1 death it should be KC : 3 DC : 1 it says that when I log out I think but when I log back In It resets to 0 anyway I think I got an Idea.
Doesn't it get split at the tabs (\t)?
Think I fixed it ty chosen one I just test again
You forgot to add it in Player.java inI forget all the time :LCode:public int
add it like
Just added death rate to mah servar yesterdayCode:KD = 0, DR = 0,
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |