13.06.2018, 13:50
PHP код:
//#define LOCAL_HOST
#define SERVER_HOST
#if defined SERVER_HOST
/* Mysql Entities */
#define MYSQL_HOST ""
#define MYSQL_USER ""
#define MYSQL_PASS ""
#define MYSQL_DB ""
/* Mysql Entities */
#else
/* Local Host */
#define MYSQL_HOST ""
#define MYSQL_USER ""
#define MYSQL_PASS ""
#define MYSQL_DB ""
/* Local Host */
#endif
public OnGameModeInit()
{
#if defined SERVER_HOST
g_SQL = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB);
#else
g_SQL = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB);
#endif
}