For starters, it looks like your debugging code may not be showing you what you think it is; it looks like you are actually retrieving the values for PlayerGold 0 and PlayerGold 1 from the exact same place: pD.Invent(pD.playerNum)[gV.GOLD]

Since (as far as I can tell) you do not change pD.playerNum between those two System.out.println() statements, it makes sense that they are printing out the same value. If I'm understanding it correctly, you'll need to fix that before you can say for sure whether the pD.InventAdd() method call is doing what you want it to do.

Go is to the fountain.

Paul Carter
Ranch Hand

Joined: Sep 20, 2006
Posts: 57

posted Jan 15, 2007 12:40:00

0

Sorry - note to self "must not edit code in posts" :roll:

Your right the first line should be showing zero, but the result is the same