PDA

View Full Version : dtm



shadowblade
12-06-2006, 09:50 PM
iv got this so far for my pickaxe

program New;

begin
DTM := DTMstringfromstring('78DA633CC2C4C0E0C2C8800C38B91 8124813' +
'448F43F1030EE02AA8940552321C00CA661A28C97806ABC50 D5C0' +
'005CCD0EA01A6754357CBC9CA86A8E01D538A0AA515753415 1030' +
'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

Hey321
12-06-2006, 10:14 PM
you have to setup srl :).

tarajunky
12-06-2006, 10:25 PM
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.


program New;
var x,y,PickAxe,PickColor:integer; //DEFINE VARIABLES
begin
PickAxe := DTMfromstring('78DA633CC2C4C0E0C2C8800C38B91812481 3' +
'448F43F1030EE02AA8940552321C00CA661A28C97806ABC50 D5C0' +
'005CCD0EA01A6754357CBC9CA86A8E01D538A0AA515753415 1030' +
'0BC3C0A39');
if FindDTM(PickAxe,x,y,574,218,575,240) then
PickColor := getcolor(x,y);
FreeDTM(PickAxe);
end.

YoHoJo
12-07-2006, 12:11 AM
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 =)

shadowblade
12-07-2006, 12:37 AM
ok i stuffed this dtm big time coz i did more then 5 points lol i did like 20