Log in

View Full Version : Mismatch :(



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. ;)

Mjordan
03-18-2007, 12:48 AM
are you sure you get that error? Because I ran it and it compiled.

Smartzkid
03-18-2007, 12:58 AM
yes...compiled fine for me, too

Jason2gs
03-18-2007, 01:10 AM
Weird... I swear it brought up an error just a second ago...

Oh well, lol. Thanks guys :p

Smartzkid
03-18-2007, 01:12 AM
Just curious...what's a 'RepBomb'?

TheGodfather
03-18-2007, 01:12 AM
What the heck does <> do..... is somtin I saw in your code, if thats an actual question it means Greater than or less than

bullzeye95
03-18-2007, 01:32 AM
TheGodfather, it means not equal to.

Jason2gs
03-18-2007, 01:58 AM
A RepBomb is very simple.

You set one of your characters in an area with a bunch of level 3 mules, and run it. It'll collect names and report them for autoing.

Well, that's what I want it to do. I'm having a bit o' trouble.

gsquare567
03-18-2007, 04:18 AM
i guess this is sorta on topic with a repbomb, but how do you find the people? is there function that can find other players or do you try using colors? because if youre using colors, then that wont detect all players, because say if you took the skincolor, its changable so it wont detect all the players :S

Sp0rky
03-18-2007, 07:28 AM
Could always get the default clothes colors. lol.

So if color of trousers and color of top and level 3 then get name and report. lol.

Jason2gs
03-18-2007, 05:20 PM
The skin color can change, but with autoers, it usually won't. Default clothes as well as default skin ;)

Edit: I could have it click on white dots, starting from the inside of the MM out. 0, 0 Randomness, and the autoing scum will be right underneath you :p