05.05.2018, 18:59
Hi guys
Is possible to make ongamemodeinit check on which IP is run server...I use my mode on 3 different IP (My main server,my public test server(for staff,test update,5 slots...) and localhost,haha) . So I want to make check in ongamemodeinit for example
Is something like this possible?Now I need to change my MYSQL data every time...I hope you can understand me,thanks.
Is possible to make ongamemodeinit check on which IP is run server...I use my mode on 3 different IP (My main server,my public test server(for staff,test update,5 slots...) and localhost,haha) . So I want to make check in ongamemodeinit for example
Код:
if(IPAdress == 130.321.3224.:4040) { g_SQL = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB); } else if(IPAdress == 242.133.3131:4040) { g_SQL = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB); } else //localhost { g_SQL = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB); }