im trying to figure out why your form crashes right now.
EDIT1: OKIES I THINK I GOT IT!
EDIT2: Ok the problem is with the form editor in SCAR, for some reason part of the form design code has been leftout/removed.
ADD these 3 procedures to the top of your program, above procedure FormDesign;
SCAR Code:
procedure ShowFormModal;
begin
frmDesign.Show;
end;
procedure SafeShowFormModal;
var
v: TVariantArray;
begin
setarraylength(V, 0);
ThreadSafeCall('ShowFormModal', v);
end;
procedure SafeInitForm;
var
v: TVariantArray;
begin
setarraylength(V, 0);
ThreadSafeCall('FormDesign', v);
end;
and make this your main loop (main function) for now.
SCAR Code:
begin //Main Function//
SetupSRL;
ClearDebug;
SafeInitForm;
SafeShowFormModal;
Welcome;
repeat
wait(1000);
until (IsFKeyDown(12));//this repeat until is temporary untill you give your buttons actions
//WalkToMine;
end.