Event Alert Debug Problem

Bran

habcrush.pw
Mar 13, 2017
1,789
1,609
so basically I am trying to use the old code to change my event alert command from a basic one to a more professional one and I go to debug it in Visual Studio 2017 and the "Start Debugging" is greyed out? does anybody know why? for reference i'm using R1
the code i'm using is below =
Code:
using Plus.Communication.Packets.Outgoing.Moderation;
using Plus.Communication.Packets.Outgoing.Rooms.Notifications;
using Plus.HabboHotel.GameClients;
using System;
namespace Plus.HabboHotel.Rooms.Chat.Commands.Events
{
    class EventAlertCommand : IChatCommand
    {
        public string PermissionRequired
        {
            get
            {
                return "command_event_alert";
            }
        }
        public string Parameters
        {
            get
            {
                return "%message%";
            }
        }
        public string Description
        {
            get
            {
                return "Send a hotel alert for your event!";
            }
        }
        public void Execute(GameClient Session, Room Room, string[] Params)
        {
            if (Session != null)
            {
                if (Room != null)
                {
                    if (Params.Length == 1)
                    {
                        Session.SendWhisper("Please enter a message to send.");
                        return;
                    }
                    else
                    {
                        string Message = CommandManager.MergeParams(Params, 1);

                        PlusEnvironment.GetGame().GetClientManager().SendPacket(new RoomNotificationComposer("Habcrush Event Alert",
                           "<b>" + Session.GetHabbo().Username + "</b> is hosting some events. Prizes and GOTW points will be handed out to the winners." +
                           "<br><br><i>User Message:  <i>" + Message +
                           "<br><br><b>- " + Session.GetHabbo().Username + "</b>" +
                           "<br><br><i>This event is moderated by Habcrush Staff!</i>", "eventspic"
                         , "Click here to go to " + Room.Name + "", "event:navigator/goto/" + Session.GetHabbo().CurrentRoomId));
                    }

                }
            }
        }
    }
}
yDFCj5c.png

this is what my old one used to look like and I want it to look like this one, i put the exact same code I used for that one and then it grey's out the debug option (shown above)

what my old one looked like:
8sTNbRW.png


what my one now looks like:
nKlHLs2.png


 
Last edited:

5050

Member
Feb 25, 2015
34
13
Your project file has a reference to JerkOffCommand.cs and is unable to locate the physical file at 'C:\Users\Administrator\Desktop\....\Fun\JerkOffCommand.cs'.
  1. Go into VS, find the fun folder under HabboHotel.Rooms.Chat.Commands.User.Fun
  2. Right-click JerkOffCommand.cs
  3. Click "Exclude from Project".
  4. Press F5. If it works, awesome. If not, post a picture of the output.
 

Bran

habcrush.pw
Mar 13, 2017
1,789
1,609
Your project file has a reference to JerkOffCommand.cs and is unable to locate the physical file at 'C:\Users\Administrator\Desktop\....\Fun\JerkOffCommand.cs'.
  1. Go into VS, find the fun folder under HabboHotel.Rooms.Chat.Commands.User.Fun
  2. Right-click JerkOffCommand.cs
  3. Click "Exclude from Project".
  4. Press F5. If it works, awesome. If not, post a picture of the output.
problem is it's not there? but it works in the hotel wtf?
HZ8MGyW.png
 

Queso

echo 'Web Developer';
Nov 29, 2016
232
72
@Scorpio Check the JerkOfCommand.cs file
Clearly it is stating the namespace isn't corresponding with the folder its in.
It says namespace Plus.HabboHotel.Rooms.Chat.Commands.User.Fun, probably more than likely is, that it isn't in /Fun, did you check just User? Or any other foolder, if so, you will have to change it in the cs file as well.
 

Bran

habcrush.pw
Mar 13, 2017
1,789
1,609
@Scorpio Check the JerkOfCommand.cs file
Clearly it is stating the namespace isn't corresponding with the folder its in.
It says namespace Plus.HabboHotel.Rooms.Chat.Commands.User.Fun, probably more than likely is, that it isn't in /Fun, did you check just User? Or any other foolder, if so, you will have to change it in the cs file as well.
it wasn't in there, i let @Pinkman check it out and he's done something to my client and now it's stuck at 76% and won't load any further, i get no emulator errors, or console errors either
 

Users who are viewing this thread

Top