Results 1 to 5 of 5

Thread: dtm

  1. #1
    Join Date
    Nov 2006
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default dtm

    iv got this so far for my pickaxe

    SCAR Code:
    program New;

    begin
    DTM  := DTMstringfromstring('78DA633CC2C4C0E0C2C8800C38B918124813' +
                 '448F43F1030EE02AA8940552321C00CA661A28C97806ABC50D5C0' +
                 '005CCD0EA01A6754357CBC9CA86A8E01D538A0AA5157534151030' +
                 '0BC3C0A39');
    (finddtm(DTM,584,220,574,218,575,240))then
    pickcolor := getcolour(x,y);

    freedtm(pickaxe);



    end.

    it keeps sayin unknown identifier in DTM part
    could someone help me out and tell me what im doing wrong
    im back----took a long break away but im back and im gonna get into scripting

  2. #2
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you have to setup srl .

  3. #3
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    It says unknown identifier because you didn't define any of your variables. There is also something wrong with your DTM. It compiles fine, but it gives a buffer error when you try to run it. I tried a different DTM and it didn't give that buffer error.

    Code:
    program New;
    var x,y,PickAxe,PickColor:integer;  //DEFINE VARIABLES
    begin
      PickAxe  := DTMfromstring('78DA633CC2C4C0E0C2C8800C38B918124813' +
                 '448F43F1030EE02AA8940552321C00CA661A28C97806ABC50D5C0' +
                 '005CCD0EA01A6754357CBC9CA86A8E01D538A0AA5157534151030' +
                 '0BC3C0A39');
      if FindDTM(PickAxe,x,y,574,218,575,240) then
      PickColor := getcolor(x,y);
      FreeDTM(PickAxe);
    end.

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Yea do what tara said
    but make sure that the parent point in your DTM is a part of the pick HEAD.
    Because the x,y it finds= the parent point in the dtm =)

  5. #5
    Join Date
    Nov 2006
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok i stuffed this dtm big time coz i did more then 5 points lol i did like 20
    im back----took a long break away but im back and im gonna get into scripting

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
  •