Log in

View Full Version : Having trouble running my script.



Moee
11-12-2009, 04:14 PM
I keep getting this error
[Runtime Error] : Out Of Range in line 74 in script C:\Program Files\SCAR 3.22\Scripts
and line 74 is this
Players[1].Name := 'Username';

Zyt3x
11-12-2009, 05:28 PM
Please post the whole DeclarePlayers function :)
I think you forgot to add one to HowManyPlayers...

Narcle
11-12-2009, 05:45 PM
if your only using one player the array starts at 0 so its

Players[0].Name := 'Username';

for your first player and then

Players[1].Name := 'Username';

for your second and so on.

Also
HowManyPlayers := 1; //or however many your using like Zyt3x suggested