Jump to content

Recommended Posts

  • Premium

Hi dev's i have some problems with mysql

 

    sprintf(szQuery,"insert into player.gift set item_count=%d, owner=%d",
    bItemCount,owner->GetPlayerID());
    std::auto_ptr<SQLMsg> pkMsg(DBManager::instance().DirectQuery(szQuery));
    SQLResult * pRes = pkMsg->Get(); 
    DWORD gift_id= pRes->uiInsertID;

 

gift_id is alaways 0 why?

Link to comment
https://metin2.dev/topic/7345-mysql-uiinsertid-problem/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.