[Include] [INC] MySQL Light - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] MySQL Light (
/showthread.php?tid=105428)
[INC] MySQL Light -
cmg4life - 29.10.2009
To new users, (even to me when i was new) scripting mysql looks hard, one of the reason are the functions' name. In this include i re-named the Functions and added a few checks, like samp_mysql_get_field has to be used after samp_mysql_fetch_row.
It will slow down (just a little) the script processing speed, but you can use until you learn mysql.
The new functions' names are:
Quote:
native MySqlConnect(server[], user[], password[]);
native MySqlSelectDB(db[]);
native MySqlQuery(query[]);
native MySqlStoreResult();
native MySqlFetchRow(line[]);
native MySqlNumerOfRows();
native MySqlNumberOfFields();
native MySqlCloseConnection();
native MySqlGetPing();
|
Check
https://sampwiki.blast.hk/wiki/mysql for more Details on the functions.
Download Link
PS: I kno' it's a small thing, but it helps the newbies.
Note: i haven't use it, cause i don't need it (atm), so if you encounter any problem, let me kno'
Re: [INC] MySQL Light -
SergiKirov - 29.10.2009
good job
Re: [INC] MySQL Light -
Sergei - 29.10.2009
Are you sure this is going to work?
Re: [INC] MySQL Light -
NeRoSiS - 29.10.2009
You should at least do a minor test with things for "newbs" as if this is fucked it'll only complicate things for them.