Hi,
I have couple issues with my emu.
I use PlusEMU.
Here's the first.
Secondly,
Here's the ColorSetCommand area I believe is causing the error.
I have couple issues with my emu.
I use PlusEMU.
Here's the first.
Code:
INSERT INTO `user_wardrobe` (`user_id`,`slot_id`,`look`,`gender`) VALUES (@id,@slot,@look,@gender)
MySql.Data.MySqlClient.MySqlException (0x80004005): Data too long for column 'look' at row 1
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at Plus.Database.Adapter.QueryAdapter.RunQuery() in C:\Users\Administrator\Desktop\projectalaska crackable\Database\Adapter\QueryAdapter.cs:line 198
Secondly,
Code:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Plus.HabboHotel.Rooms.Chat.Commands.User.ColorSetCommand.Execute(GameClient Session, Room Room, String[] Params) in C:\Users\Administrator\Desktop\projectalaska crackable\HabboHotel\Rooms\Chat\Commands\User\ColorSetCommand.cs:line 14
at Plus.HabboHotel.Rooms.Chat.Commands.CommandManager.Parse(GameClient Session, String Message) in C:\Users\Administrator\Desktop\projectalaska crackable\HabboHotel\Rooms\Chat\Commands\CommandManager.cs:line 106
at Plus.Communication.Packets.Incoming.Rooms.Chat.ChatEvent.Parse(GameClient Session, ClientPacket Packet) in C:\Users\Administrator\Desktop\projectalaska crackable\Communication\Packets\Incoming\Rooms\Chat\ChatEvent.cs:line 73
at Plus.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet) in C:\Users\Administrator\Desktop\projectalaska crackable\Communication\Packets\PacketManager.cs:line 155
at Plus.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message) in C:\Users\Administrator\Desktop\projectalaska crackable\HabboHotel\GameClients\GameClient.cs:line 76
Here's the ColorSetCommand area I believe is causing the error.
Code:
using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())
{
try
{
dbClient.SetQuery("SELECT hex FROM colors WHERE color = '" + colorName + "'");
ColorSelected = dbClient.GetString();
Session.SendWhisper(colorName + " has been set");
if (ColorSelected == string.Empty)
{
Session.SendWhisper("Oops, we do not have that colour! Check ':setcolor list'.");
return;
}
}catch(Exception)
{
Session.SendWhisper("Oops, we do not have that colour! Check ':setcolor list'.");
return;
}
}