Thread: obj.remove()
View Single Post
  #1  
Old 12-23-2006, 09:30 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
obj.remove()

Well, I have one problem: I have an array storing all the ammount of each weapon a player has, but removing an ammount is weirder then I thought,
example:

PHP Code:
function onCreated()
{
  
temp.arr = { 123123};
  
temp.arr.remove1);
  
  echo( 
temp.arr);

It removes the first 1 it finds ( 0), when I try to clear out the other 1 ( 3)
I've tried like temp.arr[ 3] = NULL; temp.arr[ 3].clear();

Anyone know the solution for this?
__________________
Reply With Quote