Jason2gs
03-18-2007, 12:45 AM
[QUOTE]
Line 11: [Error] (17677:56): Type mismatch in script C:\Program Files\SCAR 2.03\Scripts\RepBomb.scar
[/QUOTE}
I got that error when I try to run a script I made, here it is.
program New;
{.include SRL/SRL.Scar}
var
TextGotten, Name : String;
begin
SetupSRL;
Wait(5000);
TextGotten := Trim(GetTextAtEx(7, 7, 100, UpChars, False, True, 0, 2, -1, 50, False, tr_AllChars));
if(Pos('Walk ', TextGotten) <> 0)then // What the heck does "<>" do?
begin
delete(TextGotten, 1, Pos('Walk ', TextGotten)); // I take it "1" is were you want the text to start deleting at?
Writeln(Name);
end;
end.
I havn't used Pos before, so I take it it's probably an error with how I have that set up? I can't see anything wrong with it.
Please help,
Mike. ;)
Line 11: [Error] (17677:56): Type mismatch in script C:\Program Files\SCAR 2.03\Scripts\RepBomb.scar
[/QUOTE}
I got that error when I try to run a script I made, here it is.
program New;
{.include SRL/SRL.Scar}
var
TextGotten, Name : String;
begin
SetupSRL;
Wait(5000);
TextGotten := Trim(GetTextAtEx(7, 7, 100, UpChars, False, True, 0, 2, -1, 50, False, tr_AllChars));
if(Pos('Walk ', TextGotten) <> 0)then // What the heck does "<>" do?
begin
delete(TextGotten, 1, Pos('Walk ', TextGotten)); // I take it "1" is were you want the text to start deleting at?
Writeln(Name);
end;
end.
I havn't used Pos before, so I take it it's probably an error with how I have that set up? I can't see anything wrong with it.
Please help,
Mike. ;)