15.03.2017, 06:43
I don't know much about Y_INI, but I think you should make the tag the same as your public tag, so, instead of this:
You'd do this
Also, the entire code of saving weapon is wrong, you loop through the opening and closing of the file, which totally destroys the reason why Y_INI exists, i'd do something like this:
EDIT before even posting:
Nevermind everything, while I was writing up an example for you, I noticed not only the mentioned above is wrong, but everything else from loading to saving.
I found this while ******-ing, please use it as an example, try to understand it and make your code from it:
http://pastebin.com/6ABeNvDu
Код:
INI_SetTag(filew,"WeaponSave");
Код:
INI_SetTag(filew,"weapon");
EDIT before even posting:
Nevermind everything, while I was writing up an example for you, I noticed not only the mentioned above is wrong, but everything else from loading to saving.
I found this while ******-ing, please use it as an example, try to understand it and make your code from it:
http://pastebin.com/6ABeNvDu