Tank Tutorial Code Problems

Hello, I am nearly finished with the Tank Tutorial but have run into some problems with the shell explosion script.

private void OnTriggerEnter(Collider other)
{
// Find all the tanks in an area around the shell and damage them.
Collider[ ] colliders = Physics.OverlapSphere(transform.position, m_ExplosionRadius, m_TankMask);

for (int i = 0; i < colliders.Length; i ++)
{
Rigidbody targetRigidbody = colliders{i}.GetComponent();

That is the section that is giving me problems, I am fairly sure I followed the instructions and tried running api updater but it has not worked. The error message reads "cannot implicitly convert type unity engine.collider to unity engine.rididbody

can anyone help?
Thanks

A couple things:

-Use code tags when posting on the forums. It will help us to be able to read your code easily.

-This isn’t a complete code snippet. I can see a few missing ‘}’ at the end; is there more to your script?

-Copying the error message and pasting it in your post can help a lot, since it gives a line number and potentially more information. Attaching your complete script file doesn’t hurt either, if it’s a long one.

-Use [ ] instead of {} for array indexing. <<This is probably what’s causing the error, but I’m not sure there aren’t other problems due to the other issues I mentioned. Give it a try.

all fixed, thanks alot