Quote:
Originally Posted by sssssssssss
Another question arises, how do i add to a server array? i know how to set, serverr.whatever = {whatever, whatever} but if I want to add and delete from that, how should I go about it?
|
Take a look at:
http://graal.net/index.php/Creation/...ject_functions
You'll find these functions which may be of use to you:
obj.add(obj2) - adds an object to an array
obj.delete(index) - deletes the object from an array at the specified index
obj.remove(obj2) - removes the first instance of the specified object from the array
obj.replace(index,obj2) - replace the object at the specified index
obj.insert(index,obj2) - insert the object at the index without replacing other indexes