Thread: [Matrix] How to save stuff.

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [Matrix] How to save stuff. 
    Registered Member Zond's Avatar
    Join Date
    Feb 2011
    Age
    29
    Posts
    434
    Thanks given
    85
    Thanks received
    6
    Rep Power
    4
    I made my total time played counter, but how to make to save it when player logs out and then load it.
    Learning
    Reply With Quote  
     

  2. #2  
    Registered Member Zond's Avatar
    Join Date
    Feb 2011
    Age
    29
    Posts
    434
    Thanks given
    85
    Thanks received
    6
    Rep Power
    4
    How does the player saving work? In PI there is txt file. So in code you write to add one more line of text and save it for some value.
    Learning
    Reply With Quote  
     

  3. #3  
    Work in progress

    Chad's Avatar
    Join Date
    Feb 2014
    Age
    29
    Posts
    215
    Thanks given
    14
    Thanks received
    24
    Rep Power
    76
    Quote Originally Posted by Kova+ View Post
    When they first log in just save a long of the current time/date?

    ^ Log
    Reply With Quote  
     

  4. #4  
    Super Donator
    Kova+'s Avatar
    Join Date
    Jan 2012
    Posts
    937
    Thanks given
    124
    Thanks received
    249
    Rep Power
    13
    When they first log in just save a long of the current time/date?
    "Real programmers don't comment their code. If it was hard to write, it should be hard to understand." - Unkown
    “ Any fool can write code that a computer can understand. Good programmers write code that humans can understand. ” - Martin Fowler
    Reply With Quote  
     

  5. #5  
    Registered Member Zond's Avatar
    Join Date
    Feb 2011
    Age
    29
    Posts
    434
    Thanks given
    85
    Thanks received
    6
    Rep Power
    4
    Quote Originally Posted by Kova+ View Post
    When they first log in just save a long of the current time/date?
    But I need to save previeos time they have spent online and add current.
    Learning
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Sep 2013
    Posts
    369
    Thanks given
    104
    Thanks received
    21
    Rep Power
    4
    Quote Originally Posted by Zond View Post
    But I need to save previeos time they have spent online and add current.
    Add a backup, like they save each 24 hour to a folder.
    Reply With Quote  
     

  7. #7  
    Registered Member Zond's Avatar
    Join Date
    Feb 2011
    Age
    29
    Posts
    434
    Thanks given
    85
    Thanks received
    6
    Rep Power
    4
    Quote Originally Posted by Robiow View Post
    Add a backup, like they save each 24 hour to a folder.
    Emm, oky, I will try again to explain what I want. I have intiger with name "a", how can I make it to save to "name.p" file? And then I need to take that "a" out from "naem.p" file
    Learning
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    player.java?
    Reply With Quote  
     

  9. #9  
    Super Donator
    Kova+'s Avatar
    Join Date
    Jan 2012
    Posts
    937
    Thanks given
    124
    Thanks received
    249
    Rep Power
    13
    I have no clue what you're wanting the outcome of this thread to look like. You need to make more sense to what you actually want to do.
    "Real programmers don't comment their code. If it was hard to write, it should be hard to understand." - Unkown
    “ Any fool can write code that a computer can understand. Good programmers write code that humans can understand. ” - Martin Fowler
    Reply With Quote  
     

  10. #10  
    Registered Member Zond's Avatar
    Join Date
    Feb 2011
    Age
    29
    Posts
    434
    Thanks given
    85
    Thanks received
    6
    Rep Power
    4
    Quote Originally Posted by Kova+ View Post
    I have no clue what you're wanting the outcome of this thread to look like. You need to make more sense to what you actually want to do.
    For example. I have pk points. I make that player to get one point for killing player. How can I save that number of points to player? Because right now, If he logs out, they are lost.
    Learning
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 0
    Last Post: 02-15-2009, 07:06 PM
  2. Snippet request: How to hover stuff
    By ncarug02 in forum Requests
    Replies: 1
    Last Post: 01-21-2009, 01:01 AM
  3. Explaining how to stop stuff (noob firendly)
    By zilchuary in forum Tutorials
    Replies: 5
    Last Post: 12-06-2007, 08:28 PM
  4. [FLASH] tutorial - how to move stuff around
    By Cloke in forum Website Development
    Replies: 7
    Last Post: 11-29-2007, 04:30 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •