First of all you need to define some things, namely the following:
#define WeaponNoSlot 0// dummy weapons
#define WeaponSlotPrimary 1// primary weapons
#define WeaponSlotSidearm 2
#define WeaponSlotSecondary 16// secondary weapons
#define WeaponSlotSideMags 32
#define WeaponSlotItem 256// items
#define WeaponSlotBinocular 4096// binocular
#define WeaponHardMounted 65536
If you haven't defined them, the config won't know what you're refering to by "WeaponSlotItem".
And also, I hate to inform you but OFP will crap out if you do 14 slots, at least it did for me.
I experimented a little with it, you could get 14 slots stable, 15 randomly crashed the game, 16 was impossible. But, I went to sleep (rebooted PC), came back and the addons were farked. I had done no changes at all, not added anything, not removed anything. It was the same PBO.
What happened was that when you tried placing items in the four extra slots the game froze up, and I mean frooooze up. You couldn't even CTRL+ALT+DELETE your way out of it.
I'm considering testing it again today and see if it lets me have 14 slots, but I'm not counting on it.
And since it seems so random if it works or not, I suggest you don't try it.
But by all means, have a go with it
I'll keep my fingers crossed for you.
editregarding the error, this line
might be the problem:
Class Soldier: Man{};
Try putting a space between soldier and :
like so:
Class Soldier : Man{};
I don't know how OFP treats whitespaces, but that is seemingly the problem, since it's the only place where a M can be the problem.