laserlaser Posted November 20, 2010 Share Posted November 20, 2010 Hello, Again,I'm.This my new function.Really good.This have exception account Ex use: removeAllAccounts("|OS|Bikers!") ((( Here, it just does not delete account "|OS|Bikers!" ))) or removeAllAccounts("bikers","laserlaser",...) -- removeAllAccounts(string exceptionAccountName1,string exceptionAccountName2,...) The Function : function removeAllAccounts(...) local ex = {...} local accs = getAccounts() for k,v in ipairs(accs) do local accex = 0 for a,c in ipairs(ex) do if c==getAccountName(v) then accex=1 end end if accex~=1 then removeAccount(v) end end end - War of Empire LUA Team - Link to comment
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