Jump to content

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
https://metin2.dev/topic/8810-loading-data-from-mysql/
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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.