Teams[2] doesn't exists.

The Teams array only contains two teams : 0 and 1. This is true whether the mode is FFA or team based. Teams[0] is Clan 1 and Teams[1] is Clan 2.