Results 1 to 3 of 3

Thread: Problem with this block of code?

  1. #1
    Join Date
    Apr 2012
    Location
    Florida!
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Lightbulb Problem with this block of code?

    procedure DTMLetsWalk
    Var
    cx , cy : Integer;
    begin
    If ObjDTM_Find('80:80:5:1:7:39:98:1:7:51:110:1:7:62:1 14:1:7:59:126:1:7:63:141:6:33:98:51:118:60:150:72: 145:72:113:35:89', cx, cy, true)
    begin
    Writeln("We found it, wooh!")
    ObjDTM_Walk('80:80:5:1:7:39:98:1:7:51:110:1:7:62:1 14:1:7:59:126:1:7:63:141:6:33:98:51:118:60:150:72: 145:72:113:35:89', 2, 200, 5 , true)
    end;
    end;


    It's highlighting "Var" ( line 44 in my code ) and saying i need to place a semi-colon at the end of the line...

    I know semi-colons dont go at the end of var statements, but even if i place one there it still says i need to place one >.>

    Any ideas/fixes?


    Edit: it won't let me indent it, but i have it indented in my Simba window... idk why it wont let me.

  2. #2
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    procedure DTMLetsWalk;

  3. #3
    Join Date
    Dec 2011
    Location
    -bash
    Posts
    515
    Mentioned
    0 Post(s)
    Quoted
    27 Post(s)

    Default

    Yea you are missing a semi-colon at the end of the procedure and the walking paths

    Simba Code:
    procedure DTMLetsWalk;
    Var
    cx , cy : Integer;
    begin
        If ObjDTM_Find('80:80:5:1:7:39:98:1:7:51:110:1:7:62:1   14:1:7:59:126:1:7:63:141:6:33:98:51:118:60:150:72: 145:72:113:35:89', cx, cy, true);
    begin
        Writeln("We found it, wooh!")
    ObjDTM_Walk('80:80:5:1:7:39:98:1:7:51:110:1:7:62:1 14:1:7:59:126:1:7:63:141:6:33:98:51:118:60:150:72: 145:72:113:35:89', 2, 200, 5 , true);
      end;
    end;

    This should work
    Last edited by Recursive; 05-09-2012 at 01:56 PM.

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
  •