19.04.2014, 23:59
I cant run my server unless this connects it to my mysql DB.
Can someone tell me what to put there.
Code:
#define SQL_DB "I dont know what to put here."//
#define SQL_DB "I dont know what to put here."//
#define SQL_HOST "your host" #define SQL_USER "your user" #define SQL_DATA "your database name" #define SQL_PASS "your user password"
mysql_connect(SQL_HOST, SQL_USER, SQL_DATA, SQL_PASS);
#define SQL_HOST "localhost" #define SQL_USER "root" #define SQL_DATA "samp" #define SQL_PASS "" public OnGameModeInit() { mysql_connect(SQL_HOST, SQL_USER, SQL_DATA, SQL_PASS); if(mysql_ping()) print("Connected to the MySQL database."); else print("Error while trying to connect to the MySQL database."); return 1; }