View Single Post
  #3  
Old 11-09-2006, 08:59 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Andy0687 View Post
PHP Code:
for (igetstringkeys("client.foo.")) {
 
client.foo.(@ i) = NULL;

im suprised 27 views before me and I still managed to get here in time. But there you go.
Quote:
Originally Posted by zokemon View Post
First thing I tried:

NPC Code:
for (temp.d : client.blah.getdynamicvarnames()) {
("client.blah." @ temp.d) = "";
}



A for loop that checks all the getdynamicvarnames() and deletes all that data in each sub variable. Problem here is you get a "folder depth" issue where you have to have for loops inside for loops if you have variables like this:
client.blah.rar.test (while trying to clear client.blah)

This method works but is obviously very lag intensive.
Already did that. Please read what I said and what I am asking.
__________________
Do it with a DON!
Reply With Quote