27.01.2017, 23:24
For SA:MP...
forward ConnectMySQL(); public ConnectMySQL() { mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS)) if(mysql_ping() == 1) { mysql_debug(1); printf("[MYSQL]: Connection to `%s` succesful!", SQL_DB); } else { printf("[MYSQL]: [ERROR]: Connection to `%s` failed!", SQL_DB); } return 1; }
mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS))
mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
Doesn't even have the error you showed on my browsing of it... Last edited 2010...
|
He must not be seeing the double ), and focusing on the outdated example more than what he should.
The updated tutorials are out there, and handed to you, but seriously, why you end up with double ) is beyond me. |