Re: Rock Band Clone - Update

new topic     » goto parent     » topic index » view thread      » older message » newer message

How's this? smile

if db_select(SongDB) != DB_OK then 
     
    puts(1,"Could not select database\n") 
     
    if db_open(SongDB, DB_LOCK_NO) != DB_OK then 
         
        puts(1,"Could not open database\n") 
         
        if db_create(SongDB, DB_LOCK_NO) != DB_OK then 
             
            puts(1,"Database could not be created\n") 
            abort(1) 
             
        end if 
         
    end if 
     
end if 
 
if db_select_table(SongTable) != DB_OK then 
     
    puts(1,"Could not select table\n") 
     
    if db_create_table(SongTable) != DB_OK then 
         
        puts(1,"Could not create table\n") 
        abort(1) 
         
    end if 
     
end if 
 
if db_insert(song_title,{SONG_TITLE}) != DB_OK then 
     
    puts(1,"Could not insert song table\n") 
    abort(1) 
     
end if 
 
db_close(SongDB) 

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu