Jump to content
BryceTheCoder

OCR.scar Out Of Range! run-time error

Recommended Posts

You're not calling SetUpOSI; in the beginning of your script resulting in the necessary initial functions to take place resulting in a runtime error from an array being assigned who's length hasn't been defined yet.

 

TL;DL put SetUpOSI 1 time at the beginning of your script (not within a loop)

 

The basic template for any RS07 OSI Script is

 

program New;

{$DEFINE RS07}

{$I OSI\OSI.scar}

procedure ScriptTerminate;
begin
 FreeOSI;
end;

begin
 SetUpOSI;   
end.

Link to comment
Share on other sites

You're not calling SetUpOSI; in the beginning of your script resulting in the necessary initial functions to take place resulting in a runtime error from an array being assigned who's length hasn't been defined yet.

 

TL;DL put SetUpOSI 1 time at the beginning of your script (not within a loop)

 

The basic template for any RS07 OSI Script is

 

program New;

{$DEFINE RS07}

{$I OSI\OSI.scar}

procedure ScriptTerminate;
begin
 FreeOSI;
end;

begin
 SetUpOSI;   
end.

 

LMFAO I'm an idiot! :P

Thanks xD

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...