SRL Archive - Help and Support

confused and pissed off.


XcanadamanX

2007-07-03 17:31:13

ok ive been having trouble with my smelter. i think this is my problem:
Function FindAll3:boolean;
var i,mymark:integer;
Begin
if (not(Loggedin2)) then exit;
writeln('waiting for flag to disappear')
MarkTime(mymark)
While (FlagDistance>8) do
begin
case i+1 of
1: begin
If FindFastRandoms then
begin
Result:=True;
exit;
end;
end;
2: Begin
If FindNormalRandoms then
begin
Result:= True;
exit;
end;
end;
3: If TimeFromMark(MyMark)>=8000 then exit;
end;
if (not(loggedin2)) then exit;
wait(5)
i:=i+1;
if i>3 then i:=0
end;
end;

is there something there that would make it stop?

YoHoJo

2007-07-03 17:34:45

Make it stop?
Add a Break or an Exit somewhere?
If Loops>8 Then Exit

XcanadamanX

2007-07-03 17:40:00

ok let me rephrase….it just stops the script. its working fine then…BOOM…just sits there

Wanted

2007-07-03 17:48:06

It's your LoggedIn stuff…

It's a problem in multiplaces I'm guessing for you, SRL, YOUR script…

XcanadamanX

2007-07-03 17:50:32

but would it write "waiting for flag to disappear" in the debug if it was the logged in?

Wanted

2007-07-03 18:03:06

I'm talking about LoggedIn: Boolean;

That's broken, you need to download SRL 3.81 and not use your own custom…

LoggedIn: Boolean; is used inside of many procedures/ functions in SRL…

bullzeye95

2007-07-03 19:14:32

No, it's working. He said it writes 'waiting for flag to disappear' in the debug box. It would exit before that if LoggedIn was broken. And try replacing all that with FFlag(8); and see if that works.

XcanadamanX

2007-07-03 20:59:13

my loggedin is different than srl's. im trying fflag(8) but i modded it so its a function not a procedure. ill test it out later. ill post later

edit: fflag works fine. but its weird that that procedure only screws up in one place. i use it in other places but works fine.