Jump to content

patter2012

Member
  • Posts

    35
  • Joined

  • Last visited

Posts posted by patter2012

  1. For help on the Player Morality thingy, I did something sorta complex but it works. 

    -I did a dump of my current DB

    -Opened up the new SQL dump file and looked for the line that starts with INSERT INTO `player_data` and copied the WHOLE LINE.

    (paste this line into a new document so it's easier to work with)

    -do a Find for

    ,0) 

    and do the replace for 

    ( yes I know it's just a closing parenthesis)

    not where it says

     

    INSERT INTO `player_data` 

     change it into

    INSERT INTO `banking_data`
    

    now your line of code should be in the format of 

    INSERT INTO `banking_data` VALUES ('76561197961077317','NotTheBandit',2586),('76561197968096448','thurman619',54514),etc.etc.etc.
    

    where it is now formatted as (`playerID`,`Playername`,morality/banksaldo)

    Run that line of code as a query in your DB and it will insert them into your Banking Data so players don't loose what they had in their bank :D

    how do i do this in phpmyadmin so i can fix the bank balance from resetting on players

×
×
  • Create New...