Excelent work my friend.
I rewrote the files that you shared and I had tested on my local server with MAX_STORAGE 2000, MAX_INVENTORY 250 and MAX_CART 300 and run great.
This is src files update
http://www.mediafire.com/download/w5onbs3efbbfqg8/src.rar
Thank you so much.