26.12.2011, 07:34
Tried to put it under OnGameModeInit. Gives the same warning. Also another error, because it's needed in another callback.
I found this into a gamemode. Check this out:
Quote:
You can't set the value of an SQLite handle. What exactly are you trying to do? A normal integer variable should probably be good enough...
|
pawn Код:
public OnGameModeInit()
{
CrashedPlayers = db_open("players.crashed");
db_query(DB:CrashedPlayers, "CREATE TABLE IF NOT EXIST [Players] ([id] INTEGER NOT NULL PRIMARY KEY, \
[nick] VARCHAR(25) DEFAULT 'None' UNIQUE NULL, \
[x] FLOAT DEFAULT '0.0' NULL, \
[y] FLOAT DEFAULT '0.0' NULL, \
[z] FLOAT DEFAULT '0.0' NULL, \
[a] FLOAT DEFAULT '0.0' NULL, \
[w] INTEGER DEFAULT '0' NULL)");