Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

SourceOP credits database conversion
#4

There's a version header followed by credits entries until the end of the file.

Version header (type should be SOPCRED, ver should be 1):
Code:
typedef struct creditsver_s
{
    char        type[12];
    int         ver;
} creditsver_t;


Credits entry:
Code:
typedef struct credits_t
{
    char            szSteamID[24];  //player's SteamID
    int             credits;        //amount of credits
    int             timeonserver;   //the time the player has been on the server
    unsigned long   lastsave;       //time in seconds since UTC 1/1/70
    int             totalconnects;  //previously total credits
    int             iuser1;         //stores flags
    char            emptyspace[64]; //for future use
    char            FirstName[36];  //stores the player's first ever name used
    char            LastName[36];   //stores the player's last used name
    char            CurrentName[36];//stores the player's name during save
} credits_t;
Reply


Messages In This Thread
SourceOP credits database conversion - by TESLA-X4 - Jan 12, 2010, 12:36 AM
SourceOP credits database conversion - by Drunken F00l - Jan 12, 2010, 03:21 AM
SourceOP credits database conversion - by TESLA-X4 - Jan 12, 2010, 06:48 AM
SourceOP credits database conversion - by Drunken F00l - Jan 12, 2010, 12:05 PM
SourceOP credits database conversion - by TESLA-X4 - Jan 12, 2010, 12:42 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)