Log in

View Full Version : runtime error with players



bsocccer77
07-26-2007, 01:12 AM
[Runtime Error] : Out Of Range in line 68 in script C:\Documents and Settings\Compaq_Owner\Desktop\SRM v0.20b.scar

I'm pretty sure i set up my players wrong. I am only using 1 account so i set it up like this
HowManyPlayers := 1;//MAKE SURE THIS ONE IS CORRECT!

CurrentPlayer := 0;
NumberOfPlayers(HowManyPlayers);

Players[0].Name := 'account'; // Your Runescape name
Players[0].Pass := 'pass'; // The corresponding password
Players[0].Nick := 'letters'; // 3-4 letters from your name, NO CAPITALS (that includes the first character)
Players[0].String1 := 'Iron'; // Type of ore to mine (Clay / Copper / Tin / Iron / Gold / Iron + Gold)
Players[0].String2 := ''; // Your BankPinNumber
Players[0].Active := True;

Players[1].Name := '';
Players[1].Pass := '';
Players[1].Nick := '';
Players[1].String1 := '';
Players[1].String2 := '';
Players[1].Active := False;

Players[2].Name := '';
Players[2].Pass := '';
Players[2].Nick := '';
Players[2].String1 := '';
Players[2].String2 := '';
Players[2].Active := False;

Players[3].Name := '';
Players[3].Pass := '';
Players[3].Nick := '';
Players[3].String1 := '';
Players[3].String2 := '';
Players[3].Active := False;

Players[4].Name := '';
Players[4].Pass := '';
Players[4].Nick := '';
Players[4].String1 := '';
Players[4].String2 := '';
Players[4].Active := False;

but i filled player[0] with the correct info.
what am i doing wrong?

Santa_Clause
07-26-2007, 01:20 AM
Remove all the extra slots.

Should look like this:

HowManyPlayers := 1;//MAKE SURE THIS ONE IS CORRECT!

CurrentPlayer := 0;
NumberOfPlayers(HowManyPlayers);

Players[0].Name := 'account'; // Your Runescape name
Players[0].Pass := 'pass'; // The corresponding password
Players[0].Nick := 'letters'; // 3-4 letters from your name, NO CAPITALS (that includes the first character)
Players[0].String1 := 'Iron'; // Type of ore to mine (Clay / Copper / Tin / Iron / Gold / Iron + Gold)
Players[0].String2 := ''; // Your BankPinNumber
Players[0].Active := True;

bsocccer77
07-26-2007, 01:36 AM
Thanks

stupedspam
07-26-2007, 02:15 AM
Or you count all of the players and use to the one you don't want to use to Active : =False;

For you it would be...
HowManyPlayers := 5;//<- Set to total # of players
CurrentPlayer := 0;
NumberOfPlayers(HowManyPlayers);

Hope this helps,
~Stupedspam