Management Karbust 4881 Posted May 1, 2016 Management Share Posted May 1, 2016 Hello, I'm editing some things in source, some use a command like this: DBManager::instance().DirectQuery("UPDATE account.account SET status= 'BLOCK' WHERE id = %d", ch->GetDesc()->GetAccountTable().id) Where is account.account how can I set to detect the database in use? I have to accounts db, one for my pvm called account and another for my pvp called account_pvp, how can I do? Thanks Link to comment Share on other sites More sharing options...
ds_aim 241 Posted May 1, 2016 Share Posted May 1, 2016 std::unique_ptr<SQLMsg> pMsg (AccountDB::instance().DirectQuery( "UPDATE account " "SET status= 'BLOCK' " "WHERE id = %d", ch->GetDesc()->GetAccountTable().id) ); 1 Link to comment Share on other sites More sharing options...
Management Karbust 4881 Posted May 1, 2016 Author Management Share Posted May 1, 2016 I'm going to test... For log, common and player is the same way? CommonDB, LogDB and PlayerDB? Thanks Link to comment Share on other sites More sharing options...
Management Karbust 4881 Posted May 1, 2016 Author Management Share Posted May 1, 2016 (edited) I have this error: Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
ds_aim 241 Posted May 1, 2016 Share Posted May 1, 2016 1 hour ago, charparodar said: I'm going to test... For log, common and player is the same way? CommonDB, LogDB and PlayerDB? Thanks true 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