Glad to help

Originally Posted By: GameScore

u forgot a small thing in your example
forgot the "="


no, i did that on purpose. Remember that in most programming languages counting and arrays start at 0.

so if you have an array with 2 entries (array_size=2), you access them with i=0 and i=1.

If you use i=2, there will usually be no direct crash but you access memory that does not belong to the array! that is very bad, and if you change this memory you will get a crash somewhere totally unrelated and its extremely hard to figure out where this crash comes from.

So be very carefull with array indices!