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 ?
Type `ListHashSet<BasePlayer>' does not contain a definition for `ToArray'Not An Issue
Have you reported it to the author/maintainer of the plugin?
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.
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) Wulf
There's no need to unnecessarily convert it.
foreach (var players in BasePlayer.activePlayerList)
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.KRW0LF
works but visual studio how can i don't show red line ?
Locked automatically
