tmoitoi 26 Posted September 5, 2014 Share Posted September 5, 2014 Hi, I want do a system that when the guy connect on the account the server put: IP/AccountID/DateTime on the MySQL for example: log.newlogins But I don't really know how-to do that, anyone as an idea ? Link to comment Share on other sites More sharing options...
Active Member Koray 2002 Posted September 5, 2014 Active Member Share Posted September 5, 2014 -- Link to comment Share on other sites More sharing options...
tmoitoi 26 Posted September 5, 2014 Author Share Posted September 5, 2014 Hi there, is it possible to do the same things but with the source of game and not with python/php ? Link to comment Share on other sites More sharing options...
Active Member Koray 2002 Posted September 5, 2014 Active Member Share Posted September 5, 2014 Hi there, is it possible to do the same things but with the source of game and not with python/php ? Sorry i don't know cpp i hope others will help Link to comment Share on other sites More sharing options...
tmoitoi 26 Posted September 10, 2014 Author Share Posted September 10, 2014 UP pls Link to comment Share on other sites More sharing options...
Denis 1474 Posted September 10, 2014 Share Posted September 10, 2014 Open input_auth.cpp and find this: DBManager::instance().EscapeString(szLogin, sizeof(szLogin), login, strlen(login)); and add under that this: DBManager::instance().DirectQuery("INSERT INTO log.newlogins ('ip','account','date') VALUES ('%d','%s','NOW()')",inet_ntoa(d->GetAddr().sin_addr),szLogin); Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted September 10, 2014 Premium Share Posted September 10, 2014 Yeah, use direct_query after the login of the guy. Like Denis said. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now