for(new i = 0; i < MAX_PLAYERS; i++){ if(IsPlayerConnected(i) && pLogado[i] == true) SalvarDados(i);}