10.09.2013, 00:38
PHP код:
#define MAP_NAME "Los Santos"
#define PASSWORD "gangster"
#define SQL_HOST "localhost"
#define SQL_USER "root"
#define SQL_DB "fc-rp"
#define SQL_PASS " "
PHP код:
public OnGameModeInit()
{
mysql_init();
mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
if(mysql_ping() == -1) print("ERROR: Failed to connect database!");
return 1;
}