Rims there's a load of fields missing off the player type and I can't for the life of me get it working!
Also, you do realise there is already a type for inventory, the pickedup type.
Check out the keycheck function
So I would have assumed you'd use the pickedup type to store inventory items but just extend it a little to deal with weight and stuff, then all the keys would automatically appear in the inventory without needing to code anything. I think you've got a very complicated route there Rims. You might want to revisit your code.
Oh, and I still can't get it working.
Also, you do realise there is already a type for inventory, the pickedup type.
Check out the keycheck function
Function keycheck(player,keyid%) For p.pickedup = Each pickedup If p\player = player And p\obj =keyid Then Delete p:Return True Next Return False End Function
So I would have assumed you'd use the pickedup type to store inventory items but just extend it a little to deal with weight and stuff, then all the keys would automatically appear in the inventory without needing to code anything. I think you've got a very complicated route there Rims. You might want to revisit your code.
Oh, and I still can't get it working.