C# Question - Noobie

btje

Member
May 17, 2012
46
2
Hiya guys,

I wanna make a C# command, that whispers, YAAAAAAAAAAAY, het werkt.
But I even don't know how to 'let it' debug.
How to save that command so it works?
(I'm editing from the source directly, but how to let the source work)

Thanks guys,
Btje

(code btw)

Code:
 //giving a whisper when saying that command
                            #region :test
                            case "test":
                                Session.SendData(RoomChatComposer.Compose(Actor.Id, "YAAAAAAAY test werkt", 0, ChatType.Whisper));
                            #endregion
 

Crup

weeeeee
Jul 25, 2010
545
310
Code:
 //giving a whisper when saying that command
                            #region :test
                            case "test":
                                Session.SendData(RoomChatComposer.Compose(Actor.Id, "YAAAAAAAY test werkt", 0, ChatType.Whisper));
break;
                            #endregion
 

btje

Member
May 17, 2012
46
2
Code:
 //giving a whisper when saying that command
                            #region :test
                            case "test":
                                Session.SendData(RoomChatComposer.Compose(Actor.Id, "YAAAAAAAY test werkt", 0, ChatType.Whisper));
break;
                            #endregion

Better explain:

When saving the ChatCommands.cs file it doesn't do anything..
 
Last edited:

Users who are viewing this thread

Top