Jump to content
  • Create New...
  • 0

Loading data from MySQL



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

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Days

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

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.