Oh that's what was wrong lol thanks so much.
I have another problem with the adding/subtracting to the ini file part of the script. It only wants to do -1, 0 and 1 values in it and refuses to go passed -1 and 1.
edit: uh wait nvm it's not even doing 0 it's just setting the value to -1 and 1...