Well since i don't know how to code in c/c++ i made this "buytable.ini" creator in Excel. (And i barely know Visual Basic for Applications 'VBA')
It uses macro and you have to accept it when you start the "create_buytable_ini.xlt" (on the first run you may want to dissable the macros and look at the code so you can see that it won't mess your comp up

)
I made it so that i can have several different buytable.ini files, all i do is configure the buytable as i want it and then save the excel file as "no shield.xls" or whatever i have configured. What Excel does is sorting the buytable.ini after
1. priority
2. price
3. name of gun (unnececary)
Then all i have to do when i want "no shield" is open the "No shield.xls" and press "create buytable.ini" and copy the buytable to the right location.
When you press the button "create buytable.ini" it saves it to your C:\ folder.
There is room for improvements so if you have any ideas please let me know, or if you know VBA do it yourselfe

(I'm interested in any improvements you make so plz let me know)