Jump to content
  • 0

One small error, just asking.


Stewie

Question

L2J Freya

public static String whosVoting()
{
	for (L2PcInstance voter : L2World.getInstance().getAllPlayersArray())
	{
		if (voter.isVoting())
		{
			return voter.getName();
		}
	}
	return "None";
[color=red]	}

().getAllPlayersArray())

 

I get this error on 4 places in the code. This is one.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

What these 4 errors say?

 

I checked the method does not exist, so i try

	public Map<Integer, L2PcInstance> getAllPlayers()
{
	return _allPlayers;
}

getAllPlayers()

 

And i get

L2World.getInstance().getAllPlayers())

With error:

Can only iterate over an array or an instance of java.lang.Iterable

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...