11-30-2014, 05:38 AM
(11-30-2014, 05:28 AM)xoft Wrote: It would be nice if the ranks could be named arbitrarily. I have 8 ranks on my server, I'd like to be able to set the number of homes for each of those ranks separately.
Hint: Read all the items in the INI file (use a for loop of cIniFile:GetValue(keyID, valueID); valueID should range from 0 to cIniFile:GetNumValues() - 1, keyID = cIniFile:FindKey()), store them in a table and use "rankTable[rankName] or DEFAULT_VALUE" to evaluate the number of allowed homes.
Will take a look at it. i thought about the same thing, but decided to keep it based on the defaults at first.
Learning step by step, you know