Thread: Error
View Single Post
  #4  
Old 06-12-2012, 09:17 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Argument out of range exeption

The first member of an array has the Index 0 the last member the quantity - 1, so the error happens if you try to access a array or List which is empty or you use a index thats is greater than the number of array members.

example you have a array with 4 values.
so you get the first with a[0] and the last with a[3], but if you try to get a[4] you get a Argument out of range exeption.
Mostly this happens if you get the number of values in a array with Length or List with Count and use it as Index but forget to subtract 1.

check OnActorDead for this.
Reply With Quote