Cazax
2008-04-05 14:45:04
Line 27: [Error] (12668:22): Semicolon (';') expected in script with this line:
SubPointsP[SubP - 1].X := x;with this script:
program DDTMHelper;
{.include srl/srl.scar}
type
SubpointsP = array of Record
X : Integer;
Y : Integer;
Color : Integer;
end;
MainpointsP = array of Record
X : Integer;
Y : Integer;
Color : Integer;
end;
var
SubP,x,y,cx,cy : Integer;
SubPointsP : Array of SubpointsP;
MainPointsP : Array of MainpointsP;
function DDTMSetup: boolean;
begin
if IsKeyDown('s') then
begin
setlength(SubPointsP, + 1);
Inc(SubP);
GetMousePos(x, y);
SubPointsP[SubP - 1].X := x;// HERE!