I have tried to figure out what's wrong with my script. It doesn't lag all the time, but still... Propably the problem has something to do with freebitmaps.
I have tried to figure out what's wrong with my script. It doesn't lag all the time, but still... Propably the problem has something to do with freebitmaps.
Move LoadBitmaps from inside the repeat loop to outside of it. You only need to call it once, and you currently have it called once every loop.
You mean like this? I tried like this but lagged more than ever.
SCAR Code:MarkTime(timemark);
LoadBitmaps;
repeat
Chop;
repeat
Burn;
if IsBlackText('ou can', 8) then avoidfire;
until(not(FindBitmaptolerancein(log, x, y, MIX1, MIY1, MIX2, MIY2, 30)));
Raport;
if (TimeFromMark(timemark) mod 1000*60*breakafterminutes = 0) then Haveabreak;
if(LogsBurned[CurrentPlayer] mod 15 = 0) and (LogsBurned[CurrentPlayer] <> 0)then
begin
if not LoggedIn then
begin
NextPlayer(false);
writeln('oops! something has gone wrong! next player!');
end;
if LoggedIn then
begin
if (Players[CurrentPlayer].integers[1] = LogsBurned[CurrentPlayer])
then
begin
writeln('This player has done his job, next player...');
NextPlayer(false);
end;
if (Players[CurrentPlayer].integers[1] <> LogsBurned[CurrentPlayer])
then
NextPlayer(True);
end;
end;
until(false);
FreeBitmap(log);
Huh. I dunno why it lags more like that. I don't think it should...
I scan my computer, maybe i have some trojans or such shit. So i guess i publish my script (again) in the JR-Member scripts
thanks for help!
There are currently 1 users browsing this thread. (0 members and 1 guests)