Code: Select all
echo Money=%money% >>GSETS.db
In the save reading code theres
Code: Select all
if "%%A" == "Money" set Money=%%B
and i think this should use same thing but bit edited (cos this is reading "Money" from GSETS.db and i want to save the money to GSETS.db after subtracting cost of bought item.And i understand i need to enter that code (the one that reads money value from GSETS.db) again because it will still be 500$ and player will be able to buy again.(Code that reads money value from gsets.db is located at start of the program,just after @echo off and title,so it wont read the file again and player will have 500$ still.Yhm,now i get that if i will use the code that sets money,it will work without writing reading code again,XD everything is mixed,i dont know even what i write)