Type `ListHashSet<BasePlayer>' does not contain a definition for `Find'Fixed
I am sorry, but it;s not a random version, it's the latest downloaded from this very site.Wulf
Please do not post random versions of plugins on the forums, thanks.
var owner = BasePlayer.FindByID(container.OwnerID);
Then there's no need for it to be posted in the thread. ;) Any modified version by someone other than the current maintainer is a random version, and we do not allow them to be posted in forum threads.Pho3niX90I am sorry, but it;s not a random version, it's the latest downloaded from this very site.
var owner = BasePlayer.FindByID(container.OwnerID);This works. Thanks!
Change to be done is on line 1234, of version 4.7.2
BasePlayer owner = BasePlayer.FindByID(container.OwnerID);and then on line 2456, replace
string filter = storedData.Filters[player.UserIDString].Find(f => f.Equals(args[0])) ?? storedData.Filters[player.UserIDString].Find(f => f.Contains(args[0]) || args[0].Contains(f)) ?? args[0];with
string filter = "";
foreach (string item in storedData.Filters[player.UserIDString]) {
if (item.Equals(args[0]) || item.Contains(args[0]) || args[0].Contains(item)) {
filter = item;
} else {
filter = args[0];
}
}not the most elegant, but works
Error while compiling: AdminRadar.cs(1237,65): error CS1061: Type `ListHashSet<BasePlayer>' does not contain a definition for `Find' and no extension method `Find' of type `ListHashSet<BasePlayer>' could be found. Are you missing an assembly reference?
@jure12 replace this line in the code
var owner = BasePlayer.activePlayerList.Find(x => x.userID == container.OwnerID);var owner = BasePlayer.FindByID(container.OwnerID);Even with both of these this error still comes up and /radar is unkown...
Error while compiling: AdminRadar.cs(1237,65): error CS1061: Type `ListHashSet<BasePlayer>' does not contain a definition for `FindByID' and no extension method `FindByID' of type `ListHashSet<BasePlayer>' could be found. Are you missing an assembly reference?
Pho3niX90@op
Change to be done is on line 1234, of version 4.7.2BasePlayer owner = BasePlayer.FindByID(container.OwnerID);
and then on line 2456, replacestring filter = storedData.Filters[player.UserIDString].Find(f => f.Equals(args[0])) ?? storedData.Filters[player.UserIDString].Find(f => f.Contains(args[0]) || args[0].Contains(f)) ?? args[0];
withstring filter = ""; foreach (string item in storedData.Filters[player.UserIDString]) { if (item.Equals(args[0]) || item.Contains(args[0]) || args[0].Contains(item)) { filter = item; } else { filter = args[0]; } }
not the most elegant, but works
jure12same error:Error while compiling: AdminRadar.cs(1237,65): error CS1061: Type `ListHashSet<BasePlayer>' does not contain a definition for `Find' and no extension method `Find' of type `ListHashSet<BasePlayer>' could be found. Are you missing an assembly reference?
It's only a "work around" until it gets a proper fix...
11:53:47) | Error while compiling: AdminRadar.cs(1216,65): error CS1061: Type `ListHashSet<BasePlayer>' does not contain a definition for `Find' and no extension method `Find' of type `ListHashSet<BasePlayer>' could be found. Are you missing an assembly reference?