06.12.2010, 00:09
g-stylezzz' MySQL plugin uses this in the example:
Is this the safest way to do this? I guess it'd take .amx access to retrieve the information, but I'm still unsure about it.
pawn Код:
#define SQL_HOST "host"
#define SQL_DB "database"
#define SQL_USER "username"
#define SQL_PASS "password"
#define TABLENAME "users"
[...]
mysql_connect(SQL_HOST, SQL_USER,SQL_DB, SQL_PASS);