Db open
From SA-MP Wiki
Db open
This function is used to open a SQLite database from the /scriptfiles folder
(name[])
| name[] | Name of the database |
| Returns | Returns the ID of the database |
new DB:USERDB = db_open("users.db");
public OnGameModeInit( ) { new DB:USERDB; USERDB = db_open("users.db"); return 1; }
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- db_close: Close an SQLite database
