Omg, is this offtopic as hell or what?!
Send SMS messages using Simba
Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!
Thats stupid.... -_-
Send SMS messages using Simba
Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!
Shouldn't it be
SCAR Code:While not Bankscreen do
begin;
if ((GetSystemTime - TimeFromMark(Timer)) > 4500) then
Break;
Wait(250+random(250));
end;
Otherwise its always gonna be over 4500?
The truth finally came out...



He's right. SCAR bug.SCAR Code:program New;
function Bankscreen: Boolean;
begin
end;
procedure asdf;
begin
While (not(bankscreen)) do
// while bankscreen = false do
begin;
writeln('poop');
if ((3) > 4500) then
Break;
Wait(250+random(250));
end;
end;
begin
asdf;
end.
Yes.
It seems that when you NOT set the result, (like BankScreen doesn't when it doesn't find anything) the result sometimes return TRUE..
Really weird.
Check this out
SCAR Code:program New;
function asdf: boolean;
begin
writeln(booltostr(Result));
end;
begin
while not asdf do
Writeln('Loop');
end.
And this one
See i knew i was right!SCAR Code:program New;
function WrongBankscreen: Boolean;
begin
end;
function GoodBankscreen: Boolean;
begin
Result := False;
end;
procedure asdf;
var
I : integer;
begin
Writeln('the wrong loop... starting');
While (not(Wrongbankscreen)) do
begin
writeln('Lets loop baby');
Wait(250+random(250));
end;
Writeln('now we set the value of result to False... (Break after 5 loops)');
I := 0;
While (not(GoodBankscreen)) do
begin
writeln('Lets loop baby');
Wait(250+random(250));
I := I + 1;
if I = 5 then Break;
end;
Writeln('Now we do if WrongBankscreen = False then... Not breaking out!');
While WrongBankscreen=False do
begin
Writeln('Lets loop baby');
Wait(250+random(250));
end;
end;
begin
asdf;
end.
Thanks to bullzeye for finding out .
Verrekte Koekwous
Okay, that scared me![]()
If we edit this " bug" in srl (like were it should result false, we write result:= false instead o fnothing) then that could optimise SRL and autoing?
Maybe this could be the problem to the weird errors our scripts can heve sometimes, like for example, now and then I auto with VEM.
Sometimes (less, but hey, it happens!) I have a false player and the Debug Box tells that that p^layer is dead.
Let's now look to the FindDeath function?
SCAR Code:function FindDead: Boolean;
begin
Result := False;
// if (GetColor(34, 445) = 0) and (GetColor(134, 445) = 0) then
if (Pos('dead', srl_LastBlackLine) <> 0) and (Pos('dear', srl_LastBlackLine) <> 0) then
begin
Deaths := Deaths + 1;
Result := True;
SaveToChatLog;
if Reincarnate then Exit
else
begin
if ScreenShots then
TakeScreen('Found Dead');
{ repeat
Wait(1000 + Random(1000));
until (not (LoggedIn)); }
LogOut;
Players[CurrentPlayer].Rand := 'Oh Dear You Are in Lumby';
Players[CurrentPlayer].Active := False;
end;
end;
end;
You see? Or should I say "You don't see?", there isn't a result:=false.
So if we optimize this "bug" in SRL, maybe it could help a lot?![]()
-Tsn.
[QUOTE=Santa_Clause;277761]I love you too TSN :p[/QUOTE]
[CENTER][URL="http://www.stats.srl-forums.com/sigs"][IMG]http://www.stats.srl-forums.com/sigs/1324.png[/IMG][/URL][/CENTER]
The best way to contact me is by email, which you can find on my website: http://wizzup.org
I also get email notifications of private messages, though.
Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
Documentation | Source | Simba Bug Tracker on Github and Villavu )
My (Blog | Website)



Yes, but look at this
SCAR is supposed to automatically set results to their defaults (false, 0, '', etc).
There are currently 1 users browsing this thread. (0 members and 1 guests)