public static void PathFinder (Client C, Path Distance)
{
if (C.Recording)
{
if(Distance to C.Path[C.PathIndex] < 7);
{
if(C.PathIndex + 1< C.Path.Count)
{
C.PathIndex++;
}
else
{
C.Recording = true;
C.Path = new List<Coord>();
C.PathIndex = 0;
C.Path.Add(new Point(C.X, C.Y));
C.Path = C.Path.Reverse();
C.PathIndex = 1;
}
Coord To = Calculations.PullWeights(MakeCoord(C.X, C.Y), C.Path[C.PathIndex]);
}
}
}
我得到一些錯誤,但我真的不知道如何解決這個問題。我已經看過解決方案,但仍然有點無知>。 <不能轉換類型爲bool
的錯誤在哪裏發生?他們有什麼錯誤? – 2011-02-06 05:56:04
除非您提供有用的信息,例如您遇到的錯誤以及發生的線路 - 我們無法爲您提供幫助。 – 2011-02-06 06:01:53