File complaints
< Newer Topic
:: Older Topic >
Pages:<< prev 1 next >>
#1 Jul 18, 2010 9:51 am
Magician
GroupMembers
Posts169
JoinedNov 29, 2005
This makes no sense.
Sun Jul 18 10:43:32 2010 :: Done loading Structure Data.. Sun Jul 18 10:43:32 2010 :: Loading Player Memory Module Sun Jul 18 10:43:32 2010 :: Loading Player Accounts Sun Jul 18 10:43:32 2010 :: [*****] FILE: $ LINE: 25 Sun Jul 18 10:43:32 2010 :: [*****] BUG: fread_word: EOF encountered on read. Sun Jul 18 10:43:32 2010 :: [*****] FILE: $ LINE: 25 Sun Jul 18 10:43:32 2010 :: [*****] BUG: loadAccountFile: bad section: () Sun Jul 18 10:43:32 2010 :: [*****] FILE: $ LINE: 25 Sun Jul 18 10:43:32 2010 :: [*****] BUG: loadAccountFile: # not found. Sun Jul 18 10:43:32 2010 :: Done Player Accounts Sun Jul 18 10:43:32 2010 :: Reading in Vendors
bool loadAccountFile( const char *file ) { char filename[256]; ACCOUNT_DATA *account; FILE *fp; extern FILE *fpArea; bool found; account = new ACCOUNT_DATA; account->alts = 0; found = FALSE; sprintf( filename, "%s%s", ACCOUNT_DIR, file ); if( ( fp = FileOpen( filename, "r" ) ) != NULL ) { fpArea = fp; found = TRUE; for( ;; ) { char letter; const char *word; letter = fread_letter( fp ); if( letter == '*' ) { fread_to_eol( fp ); continue; } if( letter != '#' ) { bug( "loadAccountFile: # not found.", 0 ); break; } word = fread_word( fp ); if( !str_cmp( word, "ACCOUNT" ) ) { freadAccount( account, fp ); continue; } else if( !str_cmp( word, "PLAYER" ) ) { freadPlayer( account, fp ); continue; } else if( !str_cmp( word, "END" ) ) break; else { bug( "loadAccountFile: bad section: (%s)", word ); continue; } } FileClose( fp ); fpArea = NULL; } if( !found ) delete account; return found; }
#ACCOUNT Name Banner~ Password x~ Host x~ Email x~ Created 1279463271 LastOn 1279463271 VerifString x~ Verified 1 VerifTimes 3 RPP 0 End #PLAYER Name Banner~ Level 0 Created 1279464079 LogOff 1279464079 LogOn 1279464079 Logons 0 Room 100 End #END
#2 Jul 18, 2010 4:52 pm
Last edited Jul 18, 2010 4:53 pm by Banner
Magician
GroupMembers
Posts169
JoinedNov 29, 2005
Fix'd.
word = fread_word( fp ); if( !str_cmp( word, "ACCOUNT" ) ) { freadAccount( account, fp ); continue; } else if( !str_cmp( word, "PLAYER" ) ) { freadPlayer( account, fp ); break; }
Pages:<< prev 1 next >>