Jump to content

Get names of players from GetWhoInfo() to list


Pudge
 Share

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

Link to comment
Share on other sites

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);
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...