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
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.