Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by Sioux
Compiler crash when I include "sqlitei". I use zeex patches.
Whats wrong?
Код:
#include <a_samp>
#undef MAX_PLAYERS
#define MAX_PLAYERS 100
#undef MAX_VEHICLES
#define MAX_VEHICLES 500
#include <crashdetect>
#define BUD_USE_WHIRLPOOL true
#include <bud>
#include <easydb>
#include <rbits >
#include <YSI\y_timers>
#include <YSI\y_va>
#include <YSI\y_iterate>
#include <sscanf2>
#include <zcmd>
#include <gvar >
#include <streamer>
#include <sqlitei>
Is better to uses BUD for users or sqlitei? Tnk you, and sorry for bad english
|
I don't use the patches, so I'm not sure about the crash. However, I see that you have 3 sqlite libraries. Sqlitei is just to make SQL easy period. BUD is like a save and load basis type of thing, it also makes the whole process easier. Use which one fits your likings (or both). But, EasyDB (by Gammix) is a BUD alternative, you shouldn't be using it with BUD.
Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by Sioux
Compiler crash when I include "sqlitei". I use zeex patches.
Whats wrong?
Код:
#include <a_samp>
#undef MAX_PLAYERS
#define MAX_PLAYERS 100
#undef MAX_VEHICLES
#define MAX_VEHICLES 500
#include <crashdetect>
#define BUD_USE_WHIRLPOOL true
#include <bud>
#include <easydb>
#include <rbits >
#include <YSI\y_timers>
#include <YSI\y_va>
#include <YSI\y_iterate>
#include <sscanf2>
#include <zcmd>
#include <gvar >
#include <streamer>
#include <sqlitei>
Is better to uses BUD for users or sqlitei? Tnk you, and sorry for bad english
|
I don't use the patches, so I'm not sure about the crash. However, I see that you have 3 sqlite libraries. Sqlitei is just to make SQL easy period. BUD is like a save and load basis type of thing, it also makes the whole process easier. Use which one fits your likings (or both). But, EasyDB (by Gammix) is a BUD alternative, you shouldn't be using it with BUD (not saying you can't (not sure if you can), but it shouldn't be done).
Posts: 7,185
Threads: 5
Joined: Nov 2012
Reputation:
0
Slice why are you using the db_escape_string instead of the new %q ?
Posts: 1,831
Threads: 69
Joined: Mar 2008
Reputation:
0
You mean why did I not update it? The way it is done now has been tested and working fine for years. I see no reason to change it.
Posts: 20
Threads: 8
Joined: Apr 2016
Reputation:
0
thanks this include is awesome, REP++
Posts: 502
Threads: 57
Joined: Nov 2015
Reputation:
0
Anyone can Help with my Probs ^^ ?
Posts: 607
Threads: 90
Joined: Feb 2011
Reputation:
0
db_get_result_mem_handle isn't defined. Update include and SA-MP version. That's a function which doesn't exist.
Posts: 7,185
Threads: 5
Joined: Nov 2012
Reputation:
0
Anyone knows if it's possible to set a password on SQLite database?
I'm asking because i saw one with but not connect with SAMP.
Posts: 7,185
Threads: 5
Joined: Nov 2012
Reputation:
0
Yeah but I have 2 problems first machine is windows 2 who is trying acess is connecting a site to the db and change the values like admins etc etc
Posts: 7,185
Threads: 5
Joined: Nov 2012
Reputation:
0
Well i'm sure a password solves the problem 100%
No doesn't is sql injection