Posts: 1,418
Threads: 63
Joined: Dec 2010
Reputation:
0
dini, zini, yini, rini and now cini.......
Posts: 15,941
Threads: 0
Joined: Jun 2008
Quote:
Originally Posted by cessil
thanks, that was actually something I thought about when creating it, but I figured for example if you saved a password as something like.
pass\nAdminLevel=123
it wouldn't really work unless you save to a file and then load from that file straight away, the cini_Save clears the file when writing and cini_Load will get the last found match I could see it happening if someone had another string to save near the bottom of the file and that's why I included cini_EscapeString.
I'd like to hear more about the crash if you do manage to narrow it down.
|
If cini_Load gets the last found match you could still use that for strings found after numbers, just change the order. As for the crash, I don't know how I managed it - it seemed to crash on fread, which is an odd place to crash, but I don't know why and now I can't replicate it, so I wouldn't worry about it.
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
feel free to run and paste your own results
Posts: 6,129
Threads: 36
Joined: Jan 2009
Nice release, it's nice to see an INI system which conforms to the format common in SA-MP. Dini doesn't compare, Y_Ini conforms to the real INI standard of formatting, and the rest aren't really that good.
Posts: 873
Threads: 5
Joined: Apr 2012
Reputation:
0
You should't really use this, there are much better systems like y_ini. (No SQL)
The bolded part is obv saving.
ssssdf - string string string string integer float
Slice Grim_ Blacklite Rachael 18 1.24
Props1, Props2... - ini keys.