Ir para conteúdo
  • 0

[Resolvido] [Resolvido] [ERROR] Alguem pode ajudar ai?


Guest fernpvp

Pergunta

10 respostass a esta questão

Posts Recomendados

Então pq tu fez um loop? '-'

        for (Player lutador2 = (Player)FightUtils.participantes.get(r.nextInt(FightUtils.participantes.size())); lutador1 == lutador2; lutador1 = (Player).....

 

Será que é por causa do lutador1 == lutador2;?

Link para o comentário
Compartilhar em outros sites

        for (Player lutador2 = (Player)FightUtils.participantes.get(r.nextInt(FightUtils.participantes.size())); lutador1 == lutador2; lutador1 = (Player).....

 

Será que é por causa do lutador1 == lutador2;?

Pode ser.

Não deu pra ver pela print, mais tu fez um código muito confuso ai e.e

 

 

não entendi se foi uma pergunta irônica, mais ok '-'

Link para o comentário
Compartilhar em outros sites

Player lutador2 = (Player)FightUtils.participantes.get(r.nextInt(FightUtils.participantes.size()));

Da pra tu fazer isso fora do for, ai tu pode tirar o lutador1 = lutador2 ...

 

Fiz assim ó

 

 

        Player lutador2 = (Player)FightUtils.participantes.get(r.nextInt(FightUtils.participantes.size())); lutador1 = (Player)FightUtils.participantes.get(r.nextInt(FightUtils.participantes.size()))) {}

 

 

Só que deu erro no final ()))) {}

Link para o comentário
Compartilhar em outros sites

Fiz assim ó

 

 

        Player lutador2 = (Player)FightUtils.participantes.get(r.nextInt(FightUtils.participantes.size())); lutador1 = (Player)FightUtils.participantes.get(r.nextInt(FightUtils.participantes.size()))) {}

 

 

Só que deu erro no final ()))) {}

Player lutador2 = (Player)FightUtils.participantes.get(r.nextInt(FightUtils.participantes.size()));
lutador1 = (Player)FightUtils.participantes.get(r.nextInt(FightUtils.participantes.size()));

Tenta assim '-'

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...