Jump to content

Loading data from MySQL


Recommended Posts

Hi guys. I have a table with some columns (let's call them pid, col1, col2, col3). pid is Player ID, relative to the one identifying each player. I've written a following code

if (m_bIsLoadedScore == false)
    {
        TPacketLoadV p;
        p.dwPID = GetPlayerID();
        db_clientdesc->DBPacket(HEADER_GD_PLAYER_LOADV, GetDesc()->GetHandle(), &p, sizeof(p));
    }

which is at the end of SetPlayerProto function. It sends a packet to DB with data request. db gets the data from table correctly and passes it to game. Values are read correctly and stored in variables. But there's one error I can't get rid of - if I try to teleport somewhere with /go command, all NPC disappear and nothing happens. What should I do? Please, help me! Thank you in advance


//edit: I forgot to tell that when I change false to true in if, I can teleport, but I can't get data from db. 

Edited by JachuPL
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.