Re: Rock Band Clone - Update
- Posted by ghaberek (admin) Nov 29, 2011
- 1275 views
How's this?
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