What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Get an Error over my simple script

jasonmakaveli

New Member
Joined
Oct 6, 2014
Messages
25
Reaction score
0
I get error for this code when trying to compile

Code:
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;

namespace DefaultNameSpace{
   public class DefaultClass : Core
   {
       public static string GetPluginAuthor()
       {
           return "ForADI";
       }

       public static string GetPluginVersion()
       {
           return "1.0.0.0";
       }

       public static string GetPluginDescription()
       {
           return "Mount Bot adi";
       }

       //Call on plugin start
       public void PluginRun()
       {             
          Gps gps = new Gps(this);
          gps.LoadDataBase(Application.StartupPath + "\\plugins\\Mount4Adi\\path.db3");

     while (true)
     { 
         gpsPreMove("A");
    while (!gps.GpsMove("A")
    {
       Thread.Sleep(100);  
    }
    gpsPreMove("B");
    while (!gps.GpsMove("B")   
    {
        Thread.Sleep(100);    
    }
 }
           
       }                                 
      public void gpsPreMove(GpsPoint point)
      {
          UseItem("Snowmane Snowlion ");
          Thread.Sleep(2000);
          var m = getMount();
          if (m != null)
          SitToMount();
      }
   
}
   
}
06:59:37: c:\Users\****\Desktop\ArcheageBuddy\Plugins\c\Mount4Adi.cs(36,29) : error CS1026: ) expected
06:59:37: c:\Users\****\Desktop\ArcheageBuddy\Plugins\c\Mount4Adi.cs(41,29) : error CS1026: ) expected
 
There Errors you got help you to debug it:
1st Error is line 36, the second is line 41.

You missed two ")" in those line.
It should be :

Code:
while (!gps.GpsMove("A"))

and

Code:
while (!gps.GpsMove("B"))
 
Back
Top