SQLite
#1

Hello.

I decided to try SQLite since it seems perfect for my needs, but I have some issues with it.
Problem is simple, after openning database it doesn't seem to be opened since queries aren't processed by it.

pawn Код:
new DB:TESTDB;

public OnGameModeInit()
{
  TESTDB = db_open("test.db");
}

//somewhere
new DBResult:something;
something = db_query(TESTDB,"SELECT * FROM players");
Whatever function I use to use query's result it always returns null, so I suppose there is no connected between database and server. Database is in scriptfiles folder and extension *.db.
If I run any of my queries in SQLite admin they all work without problems, but via SA:MP they do nothing.

I have searched around, but the only bug I have found was that it doesn't work in filterscripts (until 0.3). Anyone has any possible solution?

Regards
Reply


Messages In This Thread
SQLite - by Sergei - 10.10.2009, 20:55
Re: SQLite - by Sergei - 10.10.2009, 21:43

Forum Jump:


Users browsing this thread: 1 Guest(s)