Justin
2014-10-15 05:23:32
I am unable to get SRL_Events to work for some reason…
Script 1
Script 2
utils.simba (located: C:\Simba\Includes\util\utils.simba) - Custom simba file
utils.simba is a file that I include in Script 1 and Script 2
When I try to compile, I am getting the error message
utils.simba line 50: if (SRL_Events[EVENT_ANTIBAN] <> nil) then
Any help would be appreciated.
Script 1
SRL_Events[EVENT_ANTIBAN] := @script1_antiban;Script 2
SRL_Events[EVENT_ANTIBAN] := @script2_antiban;utils.simba (located: C:\Simba\Includes\util\utils.simba) - Custom simba file
{$include_once ../Includes/srl-6/srl.simba}
{$include_once ../Includes/SPS/lib/sps-rs3.simba}
function waitPoint(waitPoint: TPoint; area: TSPSArea): boolean;
begin
if not isLoggedIn() then
exit;
while (not (Distance(area.GetPlayerPos, waitPoint) <= 5) and (isLoggedIn)) do
begin
wait(500 + randomRange(100, 200));
if (SRL_Events[EVENT_ANTIBAN] <> nil) then
SRL_Events[EVENT_ANTIBAN]();
end;
exit(true);
end;
utils.simba is a file that I include in Script 1 and Script 2
{$I util/utils.simba}When I try to compile, I am getting the error message
Error: Operator "cmp_NotEqual" not compatible with types "Unknown" and "Pointer" at line 50
Compiling failed.utils.simba line 50: if (SRL_Events[EVENT_ANTIBAN] <> nil) then
Any help would be appreciated.