Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool ChatHandler::HandleEpcSupportShowCommand(const char* /*args*/)
- {
- QueryResult_AutoPtr result = CharacterDatabase.Query("SELECT id, player_guid, name, message, status FROM support_ticket WHERE status = 0");
- if (!result)
- {
- PSendSysMessage("No rows with status 0");
- return true;
- }
- do
- {
- Field* result = result->Fetch();
- uint32 id = result[0].GetUInt32();
- uint32 player_guid = result[1].GetUInt32();
- std::string name = result[2].GetString();
- std::string message = result[3].GetString();
- uint8 status = result[4].GetUInt8();
- PSendSysMessage("ID: %u Guid: %u Name: %s\n", id, player_guid, name.c_str());
- } while (result_2->NextRow());
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement