Ok, yah im trying to set a TPA's points and I get errors when I try this:
ButtonTPA[0].x := 166; ButtonTPA[0].y := 91;
Obviously im doing it wrong. How do I set a TPA's coords?
Ok, yah im trying to set a TPA's points and I get errors when I try this:
ButtonTPA[0].x := 166; ButtonTPA[0].y := 91;
Obviously im doing it wrong. How do I set a TPA's coords?
Extinct.
Formally known as Drags111.



That's correct. Your error is somewhere else. Mind posting a few lines above and below?
SCAR Code:var
ButtonTPA: TPointArray;
i, randnum, clicked: integer;
begin
if not(FindColorTolerance(x, y, 2070783, 168, 15, 287, 37, 10))then Exit;
ButtonTPA[0].x := 166; ButtonTPA[0].y := 91; <--- line 55
ButtonTPA[1].x := 166; ButtonTPA[1].y := 128;
ButtonTPA[2].x := 166; ButtonTPA[2].y := 160;
ButtonTPA[3].x := 166; ButtonTPA[3].y := 196;
and error is those Out of range on line 55 blah blah...
Extinct.
Formally known as Drags111.
Forgive me if I sound nubbish, I haven't scripted in like 6 months. Don't you have to declare the length of the array?
http://www.macrosoftinc.com/ ---WTF COPIERS!!!
how do i do that?
Extinct.
Formally known as Drags111.
Yeah, Macrosoft, you do..
SCAR Code:SetArrayLength(ButtonTPA, {how long you want the array})
thanks!
Extinct.
Formally known as Drags111.
You might wish to read http://www.srl-forums.com/forum/arrays-t31680.html
I made a new script, check it out!.
Yah i read all those, and I know how to use them i just forgot about setting the length :P thanks all!
Extinct.
Formally known as Drags111.
Yeah lol, I was beginning to wonder how you got membership. Don't worry, even I make mistakes ().
http://www.macrosoftinc.com/ ---WTF COPIERS!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)