im having a error i cannot find out what the problems seems to be. Been looking for a while debugging etc cant get it to compile.
Simba Code:
Function getAnswer(Var Chats: TStringArray; Var Index: Integer; Var Answer: String): Boolean;
Var
I, R, C: Integer;
Begin
For I := 8 DownTo 1 Do //error highlights this line
For R := 0 To High(Responds) Do
For C := 0 To High(Responds[R].Text) Do
If(InStrArr(Responds[R].Text[C], Chats[I], False))Then
Begin
Result := True;
Answer := Responds[R].Answer[Random(High(Responds[R].Answer))];
Index := I;
Exit;
End;
End;
error:
[Error] C:\Simba\Includes\SRL/SRL/core/cautorespond.scar(53:59): Type mismatch at line 52