The basic concept :
Diffrent panel definitions for every inventory slot. On item placement , store item number in an array , and according to the array (item number) change the bmap of that particular panel (inventory slot).
There are many ways to script an inventory , so I dont think someone can help you , until he checks your script for mistakes...


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201