l6bustank
2013-01-30 05:54:10
Trying to make my script check for hp while its fighting but it keeps stopping with an error in GameTab (right about where the HpPercent function is located).
This is the code that causes the script to stop:
and this is the error:
any advice?
This is the code that causes the script to stop:
While (SRL_InFight) do
begin
repeat
If (HpPercent<50) then
begin
Writeln('hp less than 50%, stopping');
TerminateScript;
end else
Wait(RandomRange(100, 200));
until TimeFromMark(Counter)>10000
end;
and this is the error:
Error: Out Of Range at line 1631
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap, SRL - Options Bitmap, 5]
any advice?