DBI changes

This commit is contained in:
David Anderson
2004-04-02 23:45:26 +00:00
parent 70e3d68643
commit 2a1e246658
2 changed files with 46 additions and 6 deletions

20
plugins/include/dbi.inc Executable file
View File

@ -0,0 +1,20 @@
/* SQL Database API
* By the AMX Mod X Development Team
*/
#if defined _dbi_included
#endinput
#endif
#define _dbi_included
native dbi_connect(host[], user[], pass[], dbname[], error[]="", maxlength=1);
native dbi_query(sql, query[], {Float,_}:...);
native dbi_nextrow(sql);
native dbi_getfield(sql, fieldnum, dest[], maxlen);
native dbi_close(sql);
native dbi_error(sql);