for(new i = 0; i <MAX_PLAYERS; i++) { if(FamilyInfo[fam][FamilyName] == FamilyInfo[i][FamilyName]) { //give the money and the score here } }