SRL Archive - Reflection Help

If not(point(myposs.x,myposs.y) = point(test[i].x,test[i].y)) then HELP


ZaSz

2009-03-08 18:48:51

I got
for i := 0 to High(test[i]) do
Begin
myposs := getmypos;
if not(point(myposs.x,myposs.y) = point(test[i].x,test[i].y)) then // line 374
begin
WalkToTile(test[i], 0, 0);
wait(400+random(350));
R_Flag;
wait(550+random(300));
end;
end;

Line 374: [Error] (21183:53): Type mismatch in script C:\Program Files (x86)\SCAR 3.20\includes\ww1/ww1.scar

I really need this figured out

bullzeye95

2009-03-08 19:07:17

I don't think the engine supports that.. just check if the x values equal each other, then check if the y values equal each other.

Cazax

2009-03-08 19:12:20

You can't compare Records

Grippy

2009-03-08 19:55:26

Can we see your variable decelerations?

Looks like you've got a few different issues going on there.

ZaSz

2009-03-08 19:56:48

Its ok after changes I just did this.

for iii := 0 to High(p_path) do
Begin
plloc := getmypos;
test := p_path[iii]
if not(plloc.x = test.x) and not(plloc.y = test.y) then
begin
WalkToTile(p_path[iii], 0, 0);
wait(400+random(350));
R_Flag;
wait(550+random(300));
end;
end;