Forum > Serverside Modding
[C++] Database query
<< < (2/2)
Steff:
I am also no c++ crack. I am fare away from this ;) Often I jump dump bewtween the code parts and find solutions with luck.
But perhaps I can have a look at your compiler to see what the problem could be. Just chat me on this weekend.
XxXGenesisXxX:
Hehe, that's alright. I'll take annother shot at it tomorrow (been awake for far too long), perhaps I'll figure it out tomorrow. If not I'll come back to this thread.
Eatos:
CharacterDatabase.PQuery("INSERT INTO player_shop VALUES ( '%u', '%u')", plr->GetGUID(), pCreature->GetEntry());
You can also try with PExecute. CharacterDatabase.PExecute("INSERT INTO player_shop VALUES ( '%u', '%u')", plr->GetGUID(), pCreature->GetEntry());
XxXGenesisXxX:
--- Quote from: "Eatos" ---CharacterDatabase.PQuery("INSERT INTO player_shop VALUES ( '%u', '%u')", plr->GetGUID(), pCreature->GetEntry());
You can also try with PExecute. CharacterDatabase.PExecute("INSERT INTO player_shop VALUES ( '%u', '%u')", plr->GetGUID(), pCreature->GetEntry()); --- End quote ---
Thanks for the reply Eatos, however i'm using ArcEmu unfortunately. I have no class members for either of those. Besides even on Trinity would that really make a difference? Aren't they just different definitions with basically the same effects?
I will try this though:
CharacterDatabase.Query("INSERT INTO player_shop VALUES ( '%u', '%u')", plr->GetGUID(), pCreature->GetEntry());
Navigation
[0] Message Index
[*] Previous page
|