Log in

View Full Version : Quick Question



nething
07-18-2008, 07:51 PM
Hey everyone. Haven't been on here for a while but I'm starting to come back.

Anyways, I'm using BH willow cutter and Scar 3.15b and SRL #20 and when I run the script I get this error in Login.scar -
Line 39: [Error] (39:5): Unknown identifier 'LoggedIn' in script E:\Program Files\SCAR 3.15\includes\SRL\SRL\Core\Login.scar

The Line in question is this:
if (LoggedIn) then Exit;

and the full procedure with that line in it is this:
{************************************************* ******************************
Procedure LoginScreenMusic(State: Variant);
By: Wizzup?
Description: Takes Boolean(True, False) or Integer(0..4) as arguments.
0 or True = Off, 4 or False = Max.
************************************************** *****************************}

Procedure LoginScreenMusic(State: Variant);

Var
RealState: Variant;
x: Extended;

Begin
if (LoggedIn) then Exit;
if (CountColor(7750, 346, 356, 416, 369) <> 119) and (GetColor(520, 135) = 4038981) then
begin
TypeByte(vk_Escape);
Wait(100);
end;
if (CountColor(7750, 346, 356, 416, 369) <> 119) then Exit;
Case VarType(State) Of
11: RealState := (State + 1) * 4;
3: If InRange(State, 0, 4) Then
RealState := State;
Else
RealState := 0;
End;
x := (425.0 - 337.0) * RealState / 4.0 + 340.0;
If CountColorTolerance(1647966, Round(x) - 5, 375, Round(x) + 5, 385, 20) < 5 Then
If CountColorTolerance(991349, Round(x) - 5, 375, Round(x) + 5, 385, 20) < 5 Then
Mouse(Round(x), RandomRange(375, 385), 0, 0, True);

End;

Anyone know what I should do? or anyone getting same error?

EDIT:::
Oh and btw I was using SRL #19 (with edited Login.scar) last night and it was working fine so I think it must be SRL #20