Cage
2014-06-20 15:50:46
Hello :)
This may seem like an obvious one for most, but I am having trouble with this. I am trying to call a function below another in my script and it will not let me as it is classed as a unknown identifier.
How do I go about allowing it to be called? Because all I can think of right now if placing it above said function and I don't think that is likely to be at all an effective solution. Heres a sample of my code to get an idea what I mean.
Thanks for any and all help. :)
This may seem like an obvious one for most, but I am having trouble with this. I am trying to call a function below another in my script and it will not let me as it is classed as a unknown identifier.
How do I go about allowing it to be called? Because all I can think of right now if placing it above said function and I don't think that is likely to be at all an effective solution. Heres a sample of my code to get an idea what I mean.
procedure Protection;
begin
WriteLn('Protecting Player...');
if DetectGas(GASX, GASY) then
begin
WriteLn('We have gas!');
playsound('C:\Simba\gump.wav');
runaway(RandomDirection, False, 1, RandomRange(2000,4000));
OreFinder; // THIS IS WHAT I WANT TO CALL!
end;
if FindNormalRandoms then
begin
playsound('C:\Simba\gump.wav');
end;
CustomAntiBan;
MiniBreaker;
end;
Function OreFinder : boolean;
// REST OF ORE FINDER FUNCTION WOULD BE BELOW: LEFT OUT DUE TO IT NOT BEING REQUIRED.
Thanks for any and all help. :)