Type `ListHashSet<BasePlayer>' does not contain a definition for `ToArray'Not An Issue

error CS1061: Type `ListHashSet<BasePlayer>' does not contain a definition for `ToArray' and no extension method `ToArray' of type `ListHashSet<BasePlayer>' could be found. Are you missing `System.Linq' or `Apex' using directive?

how can i fix it ?

Have you reported it to the author/maintainer of the plugin?
5e13a8d5b2bc5.jpg Wulf
Have you reported it to the author/maintainer of the plugin?

my plugins ..

List<BasePlayer> is now ListHashSet<BasePlayer>, so you'd need to adjust accordingly.
5e13a8d5b2bc5.jpg Wulf
List<BasePlayer> is now ListHashSet<BasePlayer>, so you'd need to adjust accordingly.

What assembly should I add?

void Unload()
        {
            foreach (var players in BasePlayer.activePlayerList.ToArray())
            {
                CuiHelper.DestroyUi(players, MainContainer);
            }
        }​

There's no need to unnecessarily convert it.

foreach (var players in BasePlayer.activePlayerList)
5e13a8d5b2bc5.jpg Wulf

There's no need to unnecessarily convert it.

foreach (var players in BasePlayer.activePlayerList)
XTByoWw.png

works but visual studio how can i don't show red line ?

5e3823fd6beb8.png KRW0LF

works but visual studio how can i don't show red line ?

The reference is from Assembly-CSharp.dll, same as BasePlayer. I don't know what it is telling you otherwise though.
Locked automatically