cIniFile help?
#12
Actually MCServer already has a StringSplit() function that does more or less the same thing, but may be faster because it's native. It returns an AStringVector, which is exported to the Lua API so that you can use:
Code:
local Values = StringSplit(IniFile.Get(...), ",");  -- split by commas
local First = Values[0];
local Second = Values[1];
-- etc.
Not sure now if the arrar is zero-based or 1-based. But you already use that because it's how commands are handled Smile
Reply
Thanks given by:


Messages In This Thread
cIniFile help? - by bearbin - 04-05-2013, 06:01 PM
RE: cIniFile help? - by NiLSPACE - 04-05-2013, 06:06 PM
RE: cIniFile help? - by bearbin - 04-05-2013, 06:08 PM
RE: cIniFile help? - by xoft - 04-05-2013, 10:09 PM
RE: cIniFile help? - by bearbin - 04-06-2013, 04:15 AM
RE: cIniFile help? - by xoft - 04-06-2013, 05:11 AM
RE: cIniFile help? - by bearbin - 04-06-2013, 05:32 AM
RE: cIniFile help? - by NiLSPACE - 04-06-2013, 09:06 PM
RE: cIniFile help? - by bearbin - 04-06-2013, 10:39 PM
RE: cIniFile help? - by NiLSPACE - 04-06-2013, 11:01 PM
RE: cIniFile help? - by bearbin - 04-06-2013, 11:03 PM
RE: cIniFile help? - by xoft - 04-07-2013, 01:48 AM
RE: cIniFile help? - by bearbin - 04-07-2013, 02:07 AM
RE: cIniFile help? - by xoft - 04-07-2013, 02:17 AM
RE: cIniFile help? - by FakeTruth - 04-07-2013, 03:39 AM
RE: cIniFile help? - by bearbin - 04-07-2013, 03:19 AM



Users browsing this thread: 4 Guest(s)