Jump to content

Recommended Posts

Hello everyone, I need a little help. I want to use the info from the GetWhoInfo () lua to create a List<string> and add the names of the players to it, I will be glad of any help.

I can’t understand how this can be done, because in C # I am new and understand little

var list = new List<string>();
for (int i = 0; i <30; i++)   // 30 is example
{
var x = Lua.LuaDoString<string>(string.Format("name, guild, level, race, class, zone, classFileName = GetWhoInfo({0}); return name", i));
list.Add(x);
}

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...