i use srl/srl.scar
i use smart and every thing esle that is used in it but when i play the script login.scar it doesnt understand DeclareOfPlayers(1);
i use srl/srl.scar
i use smart and every thing esle that is used in it but when i play the script login.scar it doesnt understand DeclareOfPlayers(1);
Failed when compiling
Line 25: [Error] (25:1): Unknown identifier 'NumberOfPlayers' in script C:\Program Files\SCAR 3.15\Scripts\openrunescape.scar
script is for opening broswer and loging u in to runescape
SCAR Code:program opensrunescape;
{.Include SRL/SRL/Misc/Smart.Scar}
{.Include SRL/SRL.Scar}
procedure opensrunescape;
begin
clickmouse (39, 343,true);
clickmouse (39, 343,true);
wait (20000);
clickmouse (543, 74,true);
sendkeys ('runescape.com');
wait (5000);
clickmouse (741, 68,true);
wait (10000);
clickmouse (435, 755,true);
end;
procedure DeclarePlayers;
begin
NumberOfPlayers(1);
CurrentPlayer :=0
Players[0].Name:= ''; //username
Players[0].Pass:= ''; //password
Players[0].Nick:= ''; //3-4 letters of username
Players[0].Active:= True;
end;
begin
SetupSRL;//this is before opensrunescape;
opensrunescape;
LoginPlayer;
end.
It is
SCAR Code:{.Include SRL/SRL.Scar}
not
SCAR Code:{.Includes SRL/SRL.Scar}
and put
SCAR Code:{.Include SRL/SRL/Misc.Scar}
before
SCAR Code:{.Include SRL/SRL.Scar}
Do not double post use the edit button![]()
Last edited by Dark Arcana; 04-10-2009 at 03:00 AM.
and since your not using smart at all, you really shouldn't include it...
It will just give uneeded errors!
There are currently 1 users browsing this thread. (0 members and 1 guests)