I am getting this error when trying to compile:
Error: Don't know which overloaded method to call with params (array [0..0] of array of AnsiString) at line 358
Compiling failed.
Here's the function where the error is happening:
Code:
function TRSChooseOption.MissSelect(Option, MissOpt: TStringArray; ChanceOfMiss: Int32=5): Boolean;
var
i,j,l: Int32;
choices: TOptionArray;
begin
while (Random(100) < ChanceOfMiss) do
begin
Self.Select([MissOpt]); <---- Error occurrs here
Wait(35,800, wdLeft);
end;
Result := Self.Select([Option]);
end;
Thanks!