SRL Archive - OSR Help

login.scar error.. no sense


g0tp0t

2010-04-15 19:27:11

[Runtime Error] : Out of Proc Range in line 365 in script C:\Documents and Settings\Josh\Desktop\Scar-Pre\includes\SRL\SRL\Core\Login.scar

the line is a wait i think, but i get it alooooot anyone else? i dont know hhow to fix

i luffs yeww

2010-04-15 19:37:29

You're setting the script up wrong. You're either saying there are more players than there actually are, or vice versa. Paste the DeclarePlayers procedure here, and make sure you block out the users/passwords (but other than those two parts, keep it EXACTLY how you filled it out).

g0tp0t

2010-04-15 19:41:33

Program YoHoJosPMS;
{.Include SRL\SRL\Misc\SMART.SCAR}
{.include SRL\SRL.scar}
{.Include SRL\SRL\Misc\Debug.SCAR}

Const
YourStatsUserID = '301'; //User ID from scriptmanager.freehostia.com
YourStatsPass = '********'; //Your pass from scriptmanager.
NumbOfPlayers= 1; //How many players are you using
StartPlayer= 0; //Player to start auoting with! (0 means first char)
LoadsPerLogin= 600; //How Many Loads To Do Per Login!
LoadsTotal= 600; //How Many Total Lods To Do Per Character!
World= 102; //Server to log into, if you are using SMART.
SSigned= false; //True for singed, False for unsigned client;
DropGems= True; //Drop Gems?(They are useless!)
SleepyWeepie= 0; //Minutes to wait before logging in again.0 = Disabled.
YDebug= true; //Shows whats happening on the runescape screen in a
//debug window, so you dont have to open/close SMART.
Version= '1.04'; //NO TOUCHY!
var fftries : integer; rdebugstrings : TStringArray; oldremotestring : string;

{*******************************************************************************
procedure DeclarePlayers;
By: SRL
Description: SRL's Player Setup
*******************************************************************************}
procedure DeclarePlayers;
var i:integer;
begin
NumberOfPlayers(NumbOfPlayers);
CurrentPlayer := StartPlayer;
for i := 0 to NumbOfPlayers-1 do
Players[i].BoxRewards := ['mote', 'ostume', 'XP', 'Gem', 'ithril', 'oal', 'une', 'oins'];

with Players[0] do
begin
Name := 'carrots4u'; //Player username.
Pass := '********'; //Player password.
Nick := 'ts4u'; //Player nickname - 3-4 letters of Player username.
Active := True;
Integers[1] := 4; //1=BrightCopper,2=DarkCopper,3=Tin,4=Iron.
Integers[2] := 8; //Seconds to try mining rock before clicking another.
end;
{ with Players[1] do
begin
Name := ''; //Player username.
Pass := ''; //Player password.
Nick := ''; //Player nickname - 3-4 letters of Player username.
Active := True;
Integers[1] := 4; //1=BrightCopper,2=DarkCopper,3=Tin,4=Iron.
Integers[2] := 5; //Seconds to try mining rock before clicking another.
end;
with Players[2] do
begin
Name := ''; //Player username.
Pass := ''; //Player password.
Nick := ''; //Player nickname - 3-4 letters of Player username.
Active := True;
Integers[1] := 4; //1=BrightCopper,2=DarkCopper,3=Tin,4=Iron.
Integers[2] := 5; //Seconds to try mining rock before clicking another.
end;
with Players[3] do
begin
Name := ''; //Player username.
Pass := ''; //Player password.
Nick := ''; //Player nickname - 3-4 letters of Player username.
Active := True;
Integers[1] := 4; //1=BrightCopper,2=DarkCopper,3=Tin,4=Iron.
Integers[2] := 5; //Seconds to try mining rock before clicking another.
end;
with Players[4] do
begin
Name := ''; //Player username.
Pass := ''; //Player password.
Nick := ''; //Player nickname - 3-4 letters of Player username.
Active := True;
Integers[1] := 4; //1=BrightCopper,2=DarkCopper,3=Tin,4=Iron.
Integers[2] := 5; //Seconds to try mining rock before clicking another.
end; {}
end;
don't see anything wrong, lol

EDIT: OOPS!! lmao

i luffs yeww

2010-04-15 19:51:02

Get on MSN, pl0x.

g0tp0t

2010-04-15 20:46:59

https://secure.logmein.com/g?f_h4gyzwwubnm39zr52r0f0h923add9548bzlhmq9y

g0tp0t

2010-04-16 17:16:16

ill edit this double post when someone replies so thread stays top, cuz still an issue, i deleted scar and srl, then i emptied recycle bin and checked out scar and srl, moved plugins, and retried, same error, help?

someone help on msn please?

Drakan

2010-04-16 17:44:47

Can you put the whole script in here?

Edit: I ran your DeclarePlayers and it works fine for me, so its obviously not that, but I will need to rest of your script to actually know whats wrong :P

i luffs yeww

2010-04-16 17:55:45

drags, the script works fine for me, and I didn't edit anything. I don't understand why it doesn't work on his computer. I even autoed for him for a little bit and didn't get any errors.

Drakan

2010-04-16 17:59:46

Ah well then its his setup of SRL and such. You using windows 7 or vista? If so, try running as Admin? Make sure you have all the pluggins and such moved into the correct folder.

g0tp0t

2010-04-16 17:59:48

lol, that wouldnt be the best idea because ilufyew already tgried whole script, the script is on pastebin, heres link: qwertyuiopoiuytrewqwertyuiop.pastebin.com

i luffs yeww

2010-04-16 18:04:31

Absolutely everything that I checked was set up correctly. It really doesn't make sense.

g0tp0t

2010-04-16 23:57:41

my liink is bad, lol oops. yah, i run pwerskillz but not yohojos pms

i luffs yeww

2010-04-17 00:40:00

Post on his thread then. :)

g0tp0t

2010-04-17 16:29:22

its not his script causing the error, i think it is calling srl, i think i remember he uses users.scar and a few other extras in srl/misc but ass you guys said, it works perfectly for you but not me, so it isnt the script, soomething about my config or scar or something, i use 3.23 and latest dev release btw

Drakan

2010-04-18 08:45:58

Are you running scar as admin? (assuming u have vista or 7)

i luffs yeww

2010-04-18 09:46:30

He has XP.

g0tp0t

2010-04-18 22:09:19

yup, xp