for(new i = 0; i < MAX_PLAYERS; i++) { if(pl[i][pMember]==fidzp||pl[i][pLeader]==fidzp){ GivePlayerMoney(i,strval(inputtext)/i);} }