Click item -> update in DB
#1

hi i have small problem.

 

 

i clicked my item ID and how to add database?

void do_Ex_NameChange_ASAD(CPC* ch, CNetMsg::SP& msg)
{
int itemindex;
switch(itemindex)
{
// 케릭 ì´ë¦„ 변경
case 11150://842 || 11150
{
if (ch->m_inventory.FindByDBIndex(11150, 0, 0) || ch->m_inventory.FindByDBIndex(11150, 0, 0))
{
std:Confusedtring query = boost:Confusedtr(boost::format(
"UPDATE t_users SET a_stash_password='55555555' WHERE a_idname='%s' LIMIT 1") % (const char *)ch->m_desc->m_idname);
DBManager::instance()->pushQueryForAuthDB(ch->m_desc->m_index, query);
}
}
break;
}
}

help my?



Messages In This Thread
[No subject] - by Assasin - 01-11-2017, 09:37 PM
[No subject] - by Nymphetamine - 01-11-2017, 09:45 PM
[No subject] - by DYKTATOR - 01-11-2017, 09:49 PM
[No subject] - by pwesty - 01-11-2017, 09:53 PM
[No subject] - by Assasin - 01-11-2017, 10:18 PM
[No subject] - by pwesty - 01-11-2017, 11:00 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)