Game Development Community

Inventory Trouble

by Mahomed Ayoob · in Torque Game Engine · 08/31/2005 (6:52 am) · 0 replies

Hi,

I have recently added a database back end (SQL Lite) onto the standard Torque inventory system (FPS Starter Kit) and I based my client side code for using it on Stephan "Beffy" Moises' inventory system (http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3467). But i have encountered a strange problem... When i pick up ammo the db updates and adds the ammo to the inventory, when i shoot the db updates and subtracts the relevant ammo from the db. But i am having trouble getting it to display on the gui how much ammo is currently available. This used to work before i put the db on the back end. Also when a weapon is picked up it displays how many of that weapon is in the gui ( usually 1) even with the db on the back end. They both use the same call backs to display the amounts.

I was just wondering if anyone had any ideas as to why this display for amount would work for the weapon but not for the ammo?