Jump to content

Search the Community

Showing results for tags 'last_play fix'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Metin2 Zone
    • Community
    • Presentations and farewells
  • Private Servers
    • Server Presentations
    • Project showcase
  • General
    • General Discussions
    • Partnerships and Cooperation
    • Services and trading
    • Helps and questions
    • Reviews and advice
    • Offtopic
  • Technical
    • Programming
    • Metin2 Server Modding
    • Web Development
    • Security
    • Operating Systems
    • Computing
  • Art
    • Design and graphic section
    • Gallery of images and videos
    • 3D Modelling
    • Mapping
  • Downloads
    • Client and Server files
    • 3D Models
    • Metin2 Images
    • Maps
    • Translation
  • Archive
    • Offline Servers
    • Temas Links Caidos

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Email


Sitio web


Jabber


Skype


Discord


Location


Intereses

Found 1 result

  1. It is for scripts online player or developer php that make connections to the database to achieve something, one who came to me to help him with that worked on a market online and item-shop and no time it was updated in real time and cause them a thousand a problem/bugs. /********* * author: VegaS * file: input_login.cpp * description: Time update in real-time table last_play * date: Tuesday, Aug 01 st 2016, 02:44am */ //1.) Search: void CInputLogin::Entergame(LPDESC d, const char * data) { LPCHARACTER ch; [........................................] } //2.) Add bellow: #ifdef ENABLE_UPDATE_LASTPLAY_REAL_TIME /********* * I put this verification level as not to over apply database updates elsewhere for characters that start at * first on the game that is at level 1, I believe that it is not necessary for a player of that level to have time adapted real-time. */ int pLevel = 5; // To begin initialize of level 5 ++ if (ch->GetLevel() > pLevel) { char pUpdateTime[1024]; snprintf(pUpdateTime, sizeof(pUpdateTime), "UPDATE player.player SET last_play = NOW() WHERE id = %u", ch->GetPlayerID()); std::auto_ptr<SQLMsg> sUpdate(DBManager::instance().DirectQuery(pUpdateTime)); } #endif
×
×
  • Create New...