Socket Object Error

Gumzy

New Member
Jan 24, 2018
27
7
Keep receiving this error when accessing the client.
"SOCKETObject reference not set to an instance of an object."

Aswell as:
"Affected Room - ID: 27 - System.NullReferenceException: Object reference not set to an instance of an object.
at Plus.HabboHotel.Rooms.RoomUserManager.OnCycle() in C:\Users\Administrator\Desktop\VisionR5 Build 1.0.1\HabboHotel\Rooms\RoomUserManager.cs:line 1085"


with that section being:
Code:
if (!User.IsBot && User.GetClient().GetHabbo().MenottedUsername != null)
                                {
                                    GameClient MenottedClient = PlusEnvironment.GetGame().GetClientManager().GetClientByUsername(User.GetClient().GetHabbo().MenottedUsername);
                                    Room Room = User.GetClient().GetHabbo().CurrentRoom;
                                    RoomUser UserMenotted = Room.GetRoomUserManager().GetRoomUserByHabbo(MenottedClient.GetHabbo().Id);
                                    if (User.UltraFastWalking)
                                    {
                                        UserMenotted.UltraFastWalking = true;
                                    }
                                    else if (User.SuperFastWalking)
                                    {
                                        UserMenotted.SuperFastWalking = true;
                                    }
                                    else if (User.FastWalking)
                                    {
                                        UserMenotted.FastWalking = true;
                                    }
                                    else
                                    {
                                        UserMenotted.UltraFastWalking = false;
                                        UserMenotted.SuperFastWalking = false;
                                        UserMenotted.FastWalking = false;
                                    }

                                    if (!Gamemap.TilesTouching(UserMenotted.X, UserMenotted.Y, User.X, User.Y))
                                    {
                                        UserMenotted.MoveTo(User.SquareInFront);
                                    }
                                }

Any ideas?
 

Users who are viewing this thread

Top