SCAR Code:
program New;
{.include SRL/SRL.scar}
const
LoadsPerPlayer = 10; //Amounts of loads per player before switching.
TreeColor = 4285531; //Tree color goes here.
WaitPerTree = 5000; //How long we wait while we're chopping the tree in milliseconds remember 1 second = 1000 milliseconds.
procedure DeclarePlayers;
begin
SetupPlayers;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active := True;
Players[1].Name := '';
Players[1].Pass := '';
Players[1].Nick := '';
Players[1].Active := True;
LoadPlayerArray;
end;
procedure ChopTree;
var
x, y, MyMark : integer;
begin
if not Loggedin then Exit;
MarkTime(MyMark);
repeat
if FindObj(x, y, 'hop', TreeColor, 30) then
begin
Mouse(x, y 0, 0, False);
if ChooseOption('hop') then
begin
end;
end;
if TimeFromMark(MyMark) > (2 * 60 * 100)) then
begin
Logout;
Exit;
end;
until false
end;
begin
SetupSRL;
DeclarePlayers;
if LoggedIn then Logout;
LoginPlayer;
repeat
ChopTree;
if InvFull then
begin
DropToPosition(2, 28);
Inc(Players[CurrentPlayer].Banked);
if Players[CurrentPlayer].Banked mod LoadsPerPlayer = 0 then
begin
NextPlayer(True);
end;
end;
if not Loggedin then NextPlayer(False);
until false
end.
I have made this script by looking at various tutorials on this website i know all the basic stuff and i've been trying to put it all together to make a simple power chopper but i keep getting this error when i try to compile it.
Line 10: [Error] (15099:1): Unknown identifier 'SetupPlayers' in script C:\Program Files\SCAR 3.12\Scripts\SupaCutter 0.1.scar
It's probably something simple/stupid so can anyone tell me what i've done/what's wrong?
EDIT: just so you know i am using scar 3.13 with newest version of SRL