![]() |
Index Out Of Range
1 Attachment(s)
I am getting a lot of "index was out of range" errors.
It does not seem to affect the running of the server. I would like to neaten up the server though. See attached picture. |
A "index was out of range" Error happens if you try to access an element in a array which not exist. In C# the first element has the index 0 and the last element has n-1. So the error mostly happens if the code acces the n element as last.
You should check the numbers of elements in a list or array with count or lenght. The last element is then count-1 or lenght-1. |
Kodiak;
Thank you for your reply. I do not use any scripts.(except one I d/l from this forum to clean up the AI between missions) I do use the time spawn triggers as well as the group destroyed triggers. I am possibly trying to spawn something that does not exist? I was hoping there was something later in the error message that would help pinpoint where the error was occurring. |
Can i get the complete mission? It's difficult to find the error without it. :rolleyes:
|
I have 3 maps in rotation.As soon as I figure out which one I will PM you.
|
All times are GMT. The time now is 07:41 PM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.