Quote:
Originally Posted by sssssssssss
Ive been just using examples. What im actually doing is i have guilds register on a server to have and give rights to members for certain things.
when it creates the array it creates it as
registeredguildsGUILDNAME={acct name, acct name}
so i need to search through the array names that are registeredguilds then find the GUILDNAME, so i can print out the entire list of the GUILDNAMES that are registered on my server in a gui.
any other ideas on how to go about that, please let me know.
|
for starters, don't use examples when you're asking for help. If you want help, ask what you want help for.
Like I said in a post previously, what you are requesting assistance for seems dubious at best. I don't believe there is any way to collect all the server variables at once by function, and since there isn't, you would have to know the names of the variables before hand. That being the case, you aren't really yielding any benefit by doubly checking them to see if registeredguilds is a part of the name.
I don't know how to explain this any better.
If there is a way to return all the server flags at once, as was said, you could iterate through that array and check if the array at whatever index in the for loop's name starts with or contains whatever string (in this case, regsistered guilds).