Thread: [pi] kdr saving

Results 1 to 10 of 10
  1. #1 [pi] kdr saving 
    Highly Regarded Member

    Lenin's Avatar
    Join Date
    Nov 2008
    Age
    29
    Posts
    1,883
    Thanks given
    526
    Thanks received
    218
    Rep Power
    2434
    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());
    Extreme Donator

    "It ain't what you don't know that gets you into trouble. It's what you know for sure that just ain't so."
    Reply With Quote  
     

  2. #2  
    Highly Regarded Member

    Lenin's Avatar
    Join Date
    Nov 2008
    Age
    29
    Posts
    1,883
    Thanks given
    526
    Thanks received
    218
    Rep Power
    2434
    come on not 1 comment .....
    Extreme Donator

    "It ain't what you don't know that gets you into trouble. It's what you know for sure that just ain't so."
    Reply With Quote  
     

  3. #3  
    Donator

    Join Date
    Jul 2010
    Posts
    276
    Thanks given
    0
    Thanks received
    1
    Rep Power
    26
    Nice mate, gonna try it out and edit it into a system i have.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Chiief's Avatar
    Join Date
    Jun 2010
    Posts
    1,544
    Thanks given
    69
    Thanks received
    238
    Rep Power
    611
    Quote Originally Posted by Blackup View Post
    Nice mate, gonna try it out and edit it into a system i have.
    Lmfaooooo! This is the help section not a snippet.

    OT: Are you saying the lines don't save or the char file in general doesn't save?
    Reply With Quote  
     

  5. #5  
    Highly Regarded Member

    Lenin's Avatar
    Join Date
    Nov 2008
    Age
    29
    Posts
    1,883
    Thanks given
    526
    Thanks received
    218
    Rep Power
    2434
    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.
    Extreme Donator

    "It ain't what you don't know that gets you into trouble. It's what you know for sure that just ain't so."
    Reply With Quote  
     

  6. #6  
    Registered Member
    Its paris's Avatar
    Join Date
    Apr 2009
    Posts
    1,141
    Thanks given
    56
    Thanks received
    234
    Rep Power
    689
    Doesn't it get split at the tabs (\t)?
    Reply With Quote  
     

  7. #7  
    Highly Regarded Member

    Lenin's Avatar
    Join Date
    Nov 2008
    Age
    29
    Posts
    1,883
    Thanks given
    526
    Thanks received
    218
    Rep Power
    2434
    nvm I'm lost tabs what do you mean
    Extreme Donator

    "It ain't what you don't know that gets you into trouble. It's what you know for sure that just ain't so."
    Reply With Quote  
     

  8. #8  
    Highly Regarded Member

    Lenin's Avatar
    Join Date
    Nov 2008
    Age
    29
    Posts
    1,883
    Thanks given
    526
    Thanks received
    218
    Rep Power
    2434
    Think I fixed it ty chosen one I just test again
    Extreme Donator

    "It ain't what you don't know that gets you into trouble. It's what you know for sure that just ain't so."
    Reply With Quote  
     

  9. #9  
    Donator

    Join Date
    Jul 2010
    Posts
    276
    Thanks given
    0
    Thanks received
    1
    Rep Power
    26
    Quote Originally Posted by Chief View Post
    Lmfaooooo! This is the help section not a snippet.

    OT: Are you saying the lines don't save or the char file in general doesn't save?
    Posted it on the wrong thread haha
    Reply With Quote  
     

  10. #10  
    Registered Member Ghost`'s Avatar
    Join Date
    May 2010
    Posts
    416
    Thanks given
    10
    Thanks received
    13
    Rep Power
    2
    You forgot to add it in Player.java in
    Code:
    public int
    I forget all the time :L

    add it like

    Code:
    KD = 0,
    DR = 0,
    Just added death rate to mah servar yesterday
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •