Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#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