Hi, I keep on getting this error:
Code:
[Runtime Error] : Exception: Access violation at address 00405260 in module 'scar.exe'. Write of address 02CBBFF4 in line 40 in script D:\Program Files\SCAR 3.15b\Scripts\My Scripts\AutoTalkers\Working On\Random.scar
from this part of my script that I'm working on:
SCAR Code:
function WhichColour : string;
begin
case Random(5) of
0: Result:= Colour1;
1: Result:= Colour2;
2: Result:= Colour3;
3: Result:= Colour4;
4: Result:= Colour5;
end;
if (WhichColour = Colour1) then C1:= C1 + 1;
if (WhichColour = Colour2) then C2:= C2 + 1;
if (WhichColour = Colour3) then C3:= C3 + 1;
if (WhichColour = Colour4) then C4:= C4 + 1;
if (WhichColour = Colour5) then C5:= C5 + 1;
end;
I have included SRL and SetupSRL in my main loop, and I do have any bitmaps in the script, so can anyone help me?
Thanks,
Richard