View Single Post
  #1  
Old 06-02-2009, 07:16 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
Deleting 'player.' objects

So, I'm storing items as

HTML Code:
  player.items.(id).(flag) = value;
Now, I'm wanting to delete the items from the player.items list
HTML Code:
  player.items.(@ temp.id).clearvars();
  player.items.(@ temp.id).clearemptyvars();
  player.items.(@ temp.id) = "";
Works fine, it clears all the sub flags of the object. Yay! However...

However, when I'm reading the objects var names, it's still showing the item ID in the list
HTML Code:
  player.items.getdynamicvarnames();
I thought using this
HTML Code:
  player.items.(@ temp.id) = "";
Would fix this, but it's not. Any ideas? thanks
Reply With Quote