Display the list of GMs.
174 Field* fields = result->Fetch();
177 uint8 max = (16 - strlen(name)) / 2;
179 if ((max + max2 + strlen(name)) == 16)
184 handler->
PSendSysMessage(
"|%*s%s%*s| %u |", max,
" ", name, max2,
" ", security);
185 }
while (result->NextRow());
uint32 Realm
Definition: Realm.h:53
std::shared_ptr< PreparedResultSet > PreparedQueryResult
Definition: QueryResult.h:107
Realm realm
Definition: World.cpp:3485
Class used to access individual fields of database query result.
Definition: Field.h:56
void setUInt8(const uint8 index, const uint8 value)
Definition: PreparedStatement.cpp:97
Definition: Language.h:626
Definition: PreparedStatement.h:74
T max(const T &x, const T &y)
Definition: g3dmath.h:320
char const * GetCString() const
Definition: Field.h:260
LoginDatabaseWorkerPool LoginDatabase
Accessor to the realm/login database.
Definition: DatabaseEnv.cpp:22
uint8 GetUInt8() const
Definition: Field.h:70
Battlenet::RealmHandle Id
Definition: Realm.h:86
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
Definition: LoginDatabase.h:88
void setInt32(const uint8 index, const int32 value)
Definition: PreparedStatement.cpp:151
uint8_t uint8
Definition: g3dmath.h:164
Definition: Language.h:628
QueryResult Query(const char *sql, T *connection=nullptr)
Definition: DatabaseWorkerPool.cpp:113
int32_t int32
Definition: g3dmath.h:167
WorldSession * GetSession()
Definition: Chat.h:59
uint8_t uint8
Definition: Define.h:152
void PSendSysMessage(const char *fmt, Args &&...args)
Definition: Chat.h:72
virtual void SendSysMessage(char const *str, bool escapeCharacters=false)
Definition: Chat.cpp:152