lose inventory not working

Started by miguel, Sat 29/11/2003 02:10:23

Previous topic - Next topic

miguel

hello to all,
I'm having problems when I want to discard a inventory item,
If I use something like:
function checkpoisonmosquito() {
 if (GetGlobalInt(6)==1) {
  ObjectOn(7);
  GiveScore(5);
  LoseInventory(8);
   AddInventory(1);
    }
}
ags doesn't lose item 8 but does add item 1
I've place Wait(1) betwen 'Lose' and 'Add' but it doesn't work,
what am I doing wrong?
thanks
Working on a RON game!!!!!

Squinky

Make sure you don't have more than one inv #8. For example, if you are testing and hit ctr-s to get all the inv, and then you pick up the same inv, you'll still have one left if you use loseinv once....

Hope thats the prob....cause it's the easy solution...heh

miguel

thanks squinky, I just added a second Loseinventory and it's working fine now,
thanks again :)
Working on a RON game!!!!!

SMF spam blocked by CleanTalk