MYSQL > SQLITE
#1

I'm converting a vehicle ownership mysql into sqlite. I know everyone would ask me why dont I use mysql. The answer is why I dont need this advanced system, and it's just a simple system. I know some mysql functions, and almost all of sqlite. But I'm having a problem on converting these into sqlite.

pawn Код:
mysql_fetch_field("Locked",data);
And this isn't converting correctly into that:
pawn Код:
db_get_field(qresult,CarID,data,256);
Returns that:
pawn Код:
C:\Documents and Settings\F e L i P e\Desktop\SAMP SERVER 0.3C\filterscripts\carsys.pwn(251) : warning 213: tag mismatch
With this one:
pawn Код:
db_get_field(qresult,"CarID",data,256);
returns
pawn Код:
C:\Documents and Settings\F e L i P e\Desktop\SAMP SERVER 0.3C\filterscripts\carsys.pwn(251) : error 035: argument type mismatch (argument 2)
As I saw on wiki and thought, should be like this.

Well, even though that, I'd like to ask also if there's not a mysql system, through a database file, since on sqlite we use: filename.db
Reply


Messages In This Thread
MYSQL > SQLITE - by blackwave - 23.01.2011, 18:34
Re: MYSQL > SQLITE - by Fj0rtizFredde - 23.01.2011, 18:41
Re: MYSQL > SQLITE - by blackwave - 23.01.2011, 18:43
Re: MYSQL > SQLITE - by Fj0rtizFredde - 23.01.2011, 18:44
Re: MYSQL > SQLITE - by blackwave - 23.01.2011, 18:47
Re: MYSQL > SQLITE - by Janek17 - 23.01.2011, 18:52
Re: MYSQL > SQLITE - by blackwave - 23.01.2011, 18:53
Re: MYSQL > SQLITE - by Joe Staff - 23.01.2011, 18:58
Re: MYSQL > SQLITE - by blackwave - 23.01.2011, 19:00
Re: MYSQL > SQLITE - by Fj0rtizFredde - 23.01.2011, 19:01

Forum Jump:


Users browsing this thread: 1 Guest(s)