I tried putting it as a constant but it said begin expected because I did it like a code I think, i put SmartWorld= '66'; under constant, which doesn't go under
Const, does it? if it does idk why it says begin expected. Could you give me an example please.
EDIT:nevermind I figured out what you meant, I had it right up there, I just needed to add SmartWorld as a constant, but leave SmartWorld= '66'; in DeclarePlayers, I thought it was one or the other, thanks for the help.
EDIT2: I thougth I fixed it, but apparently not, I must of ran a different tab and thought I still had that tab opened, so how do you do it?
It's really annoying, I tried doing it like 50 different ways, I just can't seem to get it to work.
This how I though it would work
Code:
Program AutoLogger;
{.include SRL/SRL/misc/SMART.scar}
{.Include SRL/SRL.Scar}
Const
SmartWorld
procedure DeclarePlayers;
Begin
HowManyPlayers:= 1;
CurrentPlayer:= 0;
NumberOfPlayers(HowManyPlayers);
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Active := True;
SmartWorld= '66';
End;
Begin
SmartSetupEx(SmartWorld, False, True);
While Not SmartReady Do Wait(100);
SetTargetDC(SmartGetDC);
SetupSRL;
ActivateClient;
DeclarePlayers;
LogInPlayer;
Disguise('RuneScape - the massive online adventure game by Jagex Ltd - Microsoft Internet Explorer'); //This was supposed to be the Grand Exchange Database but all R.S. pages' are the same, no need to change
End.
but I keep getting an error that comes up as,
Line 8: [Error] (12747:1): is ('=') expected in script
line 8 is where I have my procedure
nevermind, I searched for {.include SRL/SRL/misc/Smart.scar} on this site to lok for a script with smart and found out what I was looking for I know what i was doing wrong.