Results 1 to 6 of 6

Thread: Messed up again lol

  1. #1
    Join Date
    Mar 2009
    Location
    Antaractica, Penguin Drive
    Posts
    140
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Messed up again lol

    Ok well I thought I had this fixed earlier but it still is messing up. Basically I have a semicolon error on the first line of this function( the part that says function Tree):

    SCAR Code:
    function Tree(TreeUpText: string, TreeColor: Integer): TTree;
    begin
      Result.UpText := TreeUpText;
      Result.Color := TreeColor;
    end;

    function CheckTree: TTree;
    begin
      TreeName := LowerCase(Players[CurrentPlayer].Strings[0]);
      case TreeName of
     
        'normal': Result := Tree('ree', 597786);

    What did I mess up?

  2. #2
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You're getting the error on the line of the tree function? If so, then you may be missing an end or semicolon from the function/procedure/whatever above it. Please post some code from above that if this does not fix it.

  3. #3
    Join Date
    Mar 2009
    Location
    Antaractica, Penguin Drive
    Posts
    140
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I reviewed your guide actually before this, and btw I'm positive its on those lines

  4. #4
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by CowFish View Post
    What did I mess up?
    You need a semicolon inbetween variables on that line, so like this:

    SCAR Code:
    function Tree(TreeUpText: string; TreeColor: Integer): TTree;

    That should fix your problem.

  5. #5
    Join Date
    Mar 2009
    Location
    Antaractica, Penguin Drive
    Posts
    140
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  6. #6
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by CowFish View Post
    Thanks!
    No problem, glad I could help out.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •