Are you blind? He obviously wants this for Battle.net.
You just encode whatever data you want.
Say you want to "save" gold, lumber, current food and the maximum food of a player, the most simple way would be to change them all to strings and put them one after another, so say a player has:
Gold: 10000
Wood: 300
Food: 40
Max Food: 80
You have two basic ways to put it, it can be something like this
0100000003004080
This will give you to save up to 999999 of each resource and up to 99 of food, but it will take a longer string then needed if you don't actually have the full cap.
The other easy way would be something like this (using the same states):
g10000w300f40m80
This way you can save less data if you do not have the maximum cap on everything, but if you do have the maximum - your string is longer then needed.
So, that's how you "save" (encode) data. Of course this is probably the worst encoding seen, ever, so you'd need to find better ways.
A fast improvement would be to change everything to Hexadecimel base (or a bigger base if you can make one

).
g2710w12cf28m50
It will also make the code a little less obvious to the users, and you want to do that in order for them to not abuse it.