Hello,
i have big problem, i work on it more than 5 hours without any resault
this part of my plugin and i added comments to understand my problem
[ChatCommand("map")]
void cmdmap(BasePlayer player, string command, string[] args)
{
if (args.Count() >= 1 && args[0] == "find")
{
List<ulong> findit = new List<ulong>();
var name = args[1];
var target = FindOnline(name);
ulong found = Convert.ToUInt64(target.userID);
findit.Add(found);
foreach (int find in findit)
{
SendReply(player, $"{find}");
}
// i get good resault that mean player is added to findit list
SendReply(player, "-------------");
omap(player);
}
}
void omap(BasePlayer player)
{
List<ulong> findit = new List<ulong>();
foreach (int find in findit)
{
SendReply(player, $"{find}");
}
// but here i not get any resault that mean findit list not have any keys !!!, what problem ?
}help me to call findit list on another section
Merged post
no help, but solved