09.10.2015, 22:42
PHP код:
new tquery[512];
strcat(tquery,"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,\
Premium INTEGER DEFAULT 0 NOT NULL,\
Money INTEGER DEFAULT 0 NOT NULL,");
strcat(tquery,"Score INTEGER DEFAULT 0 NOT NULL,\
Kills INTEGER DEFAULT 0 NOT NULL,\
Deaths INTEGER DEFAULT 0 NOT NULL,\
KD INTEGER DEFAULT 0 NOT NULL)");
db_query(Database,tquery);