Y_INI Question. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Y_INI Question. (
/showthread.php?tid=277379)
Y_INI Question. -
iPLEOMAX - 17.08.2011
Hello guys.
I've been using 'INI_ParseFile' always for most things.. I know how to use that quite well.
But now I came across something where i need just a single value from an ini file.
(Example)
This is "
somefile.ini"
Код:
[SOME_FILE]
someinteger=7894
somefloat=154.15141
somestring=trololololol
So, how can I just read a single entry in the file, without going for making a long code...
Like INI_Int(file, "someinteger"); will give me 7894 which doesn't seem to work cause I have no idea what I'm doing.
Any help is appreciated.
Re: Y_INI Question. -
Kush - 17.08.2011
Quote:
Originally Posted by iPLEOMAX
Hello guys.
I've been using 'INI_ParseFile' always for most things.. I know how to use that quite well.
But now I came across something where i need just a single value from an ini file.
(Example)
This is " somefile.ini"
Код:
[SOME_FILE]
someinteger=7894
somefloat=154.15141
somestring=trololololol
So, how can I just read a single entry in the file, without going for making a long code...
Like INI_Int(file, "someinteger"); will give me 7894 which doesn't seem to work cause I have no idea what I'm doing.
Any help is appreciated.
|
How is it being saved?
Re: Y_INI Question. -
sleepysnowflake - 17.08.2011
Make a new INI parse file function ?!