Jerry
not rly active lol
Y use queries when you can just use LINQ? Great service, btw.Code:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Plus.Database.Interfaces; using System.Data; namespace Plus.HabboHotel.Rooms.Chat.Commands.Moderator.Fun { class UsersOnlineCommand : IChatCommand { public string PermissionRequired { get { return "command_usersonline"; } } public string Parameters { get { return ""; } } public string Description { get { return "Displays the current users online"; } } public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params) { string Output = "Current Users Online:\r"; Output += "-----------------------\r"; using (IQueryAdapter Adapter = PlusEnvironment.GetDatabaseManager().GetQueryReactor()) { Adapter.SetQuery("SELECT username FROM users WHERE online = '1'"); Adapter.RunQuery(); DataTable Table = Adapter.getTable(); if (Table != null) { foreach (DataRow Row in Table.Rows) { Output += Row["Username"].ToString() + "\r"; } } else { Output += "There must be hidden users online!"; } } Session.SendNotification(Output); } } }