Event Alert Debug Problem

Bran

habcrush.pw
Mar 13, 2017
1,790
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:

JynX

Posting Freak
Feb 6, 2016
710
438
You're getting that error because you deleted it via the File Explorer and not VS. Visual Studio thinks the file still exists whilst it doesn't.
 

5050

Member
Feb 25, 2015
34
13
i think it came like that, because I haven't touched anything I don't delete things haha, the file that says that's deleted isn't in there but the command still works on the hotel?
If you haven't compiled the emulator since you got it, it may be because the binary is different. Otherwise, I'm not sure what to tell you.
 

Users who are viewing this thread

Top