void_hatred
2010-02-13 06:18:21
hey guys, I've been reading some tutorials during today and yesterday and have encountered a problem.
so using the documentation and some excellent tutorials, I tried making something out of what I had learned.
I get an error saying that there should be a semicolon on line 24, (oh and by the way, the reason why I use a two dimensional array for the colors is that I learned that they are dynamic, they keep changing, thus if I used one, it wouldn't work on the second test or something? oh and I tried FindLumbyRoadColor, but that didn't work, (I'm at lumby castle, outside))
oh and I will apologize in advance for my code, it is probably sloppy and needs standardization.
void_hatred
so using the documentation and some excellent tutorials, I tried making something out of what I had learned.
program RadialWalk;
{.include SRL/SRL.scar}
var
road_color: TIntegerArray; // is this two dimensional array of intgers? Array of Array of Integer?
i, j: Integer;
procedure init_variables;
begin
SetupSRL;
road_color := [
[8692140, 8823978, 8692135, 9021614, 8889771]
];
end;
begin
init_variables;
for i := 0 to High(road_color) do
begin
for j := 0 to High(road_color[i]) do
begin
if RadialRoadWalk(road_color[i][j], 60, 120, 72, 2, 2) then // expected Semicolon here
begin
WriteLn('Found: ' + IntToStr(road_color[i][j]));
break;
end else
begin
WriteLn('Could not find: ' + IntToStr(road_color[i][j]));
end;
FFlag(0);
end;
end;
end.
I get an error saying that there should be a semicolon on line 24, (oh and by the way, the reason why I use a two dimensional array for the colors is that I learned that they are dynamic, they keep changing, thus if I used one, it wouldn't work on the second test or something? oh and I tried FindLumbyRoadColor, but that didn't work, (I'm at lumby castle, outside))
oh and I will apologize in advance for my code, it is probably sloppy and needs standardization.
void_hatred