I've just began learning how to script for GTA IV using C# and the scripthook. Everything is fine and dandy (I'd say I have a strong programming background), but I can't for the life of me figure out how to get INI files to work.
Here's a snippet my code (just the setting of variables from INI file): http://pastebin.com/J9EbG1h1
My .dll name is MyMod.net.dll and the INI is MyMod.net.ini, so I don't know what the problem is...
The code I'm using is shown below:
Keys startKey;
// inside constructor
startKey = Settings.GetValueKey( "KEY", "KEYS", Keys.F );
Inside my INI looks like this:
[KEYS]
KEY=H
Now when I run GTA and try to press the start key H, it doesn't work, but the default key (F), works instead. I've tried reloadingScripts and reloadingSettings in the console, but to no avail.
Any post is appreciated