Log in

View Full Version : Errors



TViYH
01-25-2008, 06:21 AM
I use the SVN, I have SRL 10...

I keep getting an error in Login.scar near the if Players[CurrentPlayer].Active = false then place...And, no script will work! It basically says [Runtime Error] Out of Range In Line 90 of : ///Login.scar

nielsie95
01-25-2008, 03:39 PM
Moved to FAQ.

I think you didn't setup your players correctly (http://www.villavu.com/forum/showthread.php?t=5410).

TViYH
01-25-2008, 10:59 PM
Successfully compiled
SRL Compiled in 250 msec
[Runtime Error] : Out Of Range in line 78 in script C:\Documents and Settings\DOWNLOADS\[SRL4] QuickPowerMiner1.7.scar

procedure SetupScript;
begin
if (Players[CurrentPlayer].Booleans[1])then
begin

That's the line...


Here's my login setup:
Procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 1;

Players[0].Name :='***_*****';
Players[0].Pass :='************';
Players[0].Nick :=****'; //3-4 letters from name
Players[0].Active:= True;
Players[0].Booleans[1]:= False; // True if new rocks. False if old.
Players[0].Booleans[2]:= True; // Pick equipped?
Players[0].Strings[1]:= 'Copper'; // type of ore
Players[0].Integers[1]:= 5; // # of loads
End;

Rikje
01-26-2008, 07:40 AM
CurrentPlayer := 1;

change that to:


CurrentPlayer := 0;

;)

TViYH
01-26-2008, 02:11 PM
Ok, lol...That's the ONE thing I forgot to change...I even thought about it when I deleted teh other player setups...Thanks guys