Add staff login notification
#3

This is a code for old "top ranker" message, I guess you can adapt it so that it informs when a staff member logs in. Or is that not what you're looking for?

Credits to whoever posted this on gamesdev long ago 

 

Connector server files:

http://prntscr.com/o9ad93

Server.h
Line 138 add this
MYSQL m_dbuserD;

Server.cpp
line 416 add this

{
if (!mysql_real_connect(
&m_dbuserD,
m_config.Find("UserD DB", "IP"),
m_config.Find("UserD DB", "User"),
m_config.Find("UserD DB", "Password"),
m_config.Find("UserD DB", "DBName"),
0, NULL, 0))
{
LOG_ERROR("can't connect to db : ip[%s] user[%s] password[%s] dbname[%s] error[%s]",
m_config.Find("UserD DB", "IP"),
m_config.Find("UserD DB", "User"),
m_config.Find("UserD DB", "Password"),
m_config.Find("UserD DB", "DBName"),
mysql_error(&m_dbuserD)
);
return false;
}
http://prntscr.com/o9ad3a
make sure the next line is that ^^

rest will come when i can post again



Messages In This Thread
[No subject] - by yanharazra2 - 06-07-2021, 11:30 AM
[No subject] - by Scura - 06-07-2021, 01:10 PM
[No subject] - by Desarija - 06-07-2021, 02:11 PM
[No subject] - by yanharazra2 - 06-07-2021, 02:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)