Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Heythere ;D Big JavaScript noob here, I am currently trying to write an function which can read KeyValue from an KeyName in an settings.file. Ive tried to do it like that:
The settings file would look like this: [ApplicationTitle] GameXY [ApplicationVersion] 0.3 So if you want to get the games title, you would need to getSettings("ApplicationTitle"); But the function allways returns 0, i dont know why. Thanks for any help or tips :D |
||||
|
There is emty space at the end of your string thats why it never == with string you compare.. One way for doing it function getSettings(keyname) { Another way
|
||||
|
Thanks :D |
|