25.08.2015, 17:22
I have been creating a filterscript and for some reason when I open the server it does not properly create the sql_sequence table and messes up my register system.
does anyone know why this is happening? help will be appreciated.
pawn Код:
LoadDatabase()
{
new Query[800];
AdminSys = db_open("darkadmin.db");
strcat(Query, "CREATE TABLE IF NOT EXISTS users (userid INTEGER PRIMARY KEY AUTOINCREMENT, username VARCHAR(24) COLLATE NOCASE, password VARCHAR(129), admin INTEGER DEFAULT 0 NOT NULL,", sizeof(Query));
strcat(Query, "score INTEGER DEFAULT 0 NOT NULL, money INTEGER DEFAULT 1000 NOT NULL, banned INTEGER DEFAULT 0 NOT NULL, ip VARCHAR(16) NOT NULL )", sizeof(Query));
db_query(AdminSys, Query);
}