Jump to content

Recommended Posts


class:
int CShop::Buy(LPCHARACTER ch, BYTE pos)

I want to print this way.but it does not and gives the core.
 

   time_t rawtime;
   struct tm *info;
   char buffer[80];

   time( &rawtime );

   info = localtime( &rawtime );

	strftime(buffer,80,"%x - %I:%M%p", info);
	char szQuery[512];
	snprintf(szQuery, sizeof(szQuery), "INSERT INTO log.log_kulfe VALUES((SELECT id FROM player.player WHERE name = '%s'),'%s','%s','%d','%d',NOW())", ch->GetName(),item->GetVnum(),item->GetName(), dwPrice,item->GetCount());
	SQLMsg *msg = DBManager::instance().DirectQuery(szQuery);
game.core

in CShop::Buy (this=0x2a298830, ch=0x37a41800, pos=20 '\024')
    at shop.cpp:839
#4  0x0829a570 in CShopManager::Buy (this=0xbfcfa990, ch=0x37a41800,
    pos=20 '\024') at shop_manager.cpp:420

Thank you in advance.

Link to comment
https://metin2.dev/topic/17784-query-crash-problem/
Share on other sites

  • Replies 3
  • Created
  • Last Reply

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.