Db open

From SA-MP Wiki

Jump to: navigation, search

Db open


This function is used to open a SQLite database from the /scriptfiles folder


Parameters:
(name[])
name[] Name of the database
ReturnsReturns 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.

Personal tools
In other languages