Pudge 24 Posted May 8, 2020 Share Posted May 8, 2020 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 https://wrobot.eu/forums/topic/12132-get-names-of-players-from-getwhoinfo-to-list/ Share on other sites More sharing options...
zzzar 13 Posted May 9, 2020 Share Posted May 9, 2020 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); } Pudge 1 Link to comment https://wrobot.eu/forums/topic/12132-get-names-of-players-from-getwhoinfo-to-list/#findComment-58057 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now