Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualServant of the Lord

Posted 07 February 2014 - 01:24 PM

My guess is it isn't compiling properly because of a syntax error. Specifically, the second comma from the end is not supposed to be there.

public override void OnTradeMessage(string message)
        {
            Bot.log.Info("[TRADE MESSAGE] " + message);
            message = message.ToLower();

           
	    if (message == "raffle")
            {
                Trade.SendMessage("THIS IS A TEST");
                Bot.log.Success("User wants to do a raffle!");
            }
			//try
			//{
				//using (StreamReader sr = new StreamReader(EntryDirectory))
				//{
					//string line = sr.ReadToEnd();
					//Trade.SendMessage(line)
					//Console.WriteLine(line);
				//}
			//}

            } //<---- UNNECESSARY/EXTRA CURLY BRACKET

        }

#2Servant of the Lord

Posted 02 February 2014 - 06:25 PM

My guess is it isn't compiling properly because of a syntax error. Specifically, the second comma from the end is not supposed to be there.

public override void OnTradeMessage(string message)
        {
            Bot.log.Info("[TRADE MESSAGE] " + message);
            message = message.ToLower();

           
	    if (message == "raffle")
            {
                Trade.SendMessage("THIS IS A TEST");
                Bot.log.Success("User wants to do a raffle!");
            }
			//try
			//{
				//using (StreamReader sr = new StreamReader(EntryDirectory))
				//{
					//string line = sr.ReadToEnd();
					//Trade.SendMessage(line)
					//Console.WriteLine(line);
				//}
			//}

            } //<---- UNNECESSARY/EXTRA SEMICOLON

        }

#1Servant of the Lord

Posted 02 February 2014 - 06:24 PM

My guess is it isn't compiling properly because of a syntax error. Specifically:

public override void OnTradeMessage(string message)
        {
            Bot.log.Info("[TRADE MESSAGE] " + message);
            message = message.ToLower();

           
	    if (message == "raffle")
            {
                Trade.SendMessage("THIS IS A TEST");
                Bot.log.Success("User wants to do a raffle!");
            }
			//try
			//{
				//using (StreamReader sr = new StreamReader(EntryDirectory))
				//{
					//string line = sr.ReadToEnd();
					//Trade.SendMessage(line)
					//Console.WriteLine(line);
				//}
			//}

            } //<---- UNNECESSARY/EXTRA SEMICOLON

        }

PARTNERS