Thread: Null exception
View Single Post
  #16  
Old 03-19-2012, 10:40 AM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Ok, the null exeption you get has nothing to do with your script, it's the underlying engine that causes this problem.

You get also an
=================================================
System.ArgumentOutOfRangeException:

Server stack trace:
bei System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n()
bei Mission.TriggerProcessing(String shortName, Boolean active)
bei Mission.OnTrigger(Int32 missionNumber, String shortName, ...

for example you have a Array arr with 100 entries. so you can access the entries with arr[0]..arr[99] if you try arr[100] you will get this exeption.
In C# the first element of an Array has the index 0 and the last has count-1.
Reply With Quote