[Include] eXtended INI Processor - Fast & Feature Rich INI Processor
#23

Quote:
Originally Posted by Yashas
Посмотреть сообщение
Add this line

Код:
printf("Handle ID:%d",_:handle);
Compare the handle id with

Код:
#define INI_ERR_FAILED_TO_OPEN -1
#define INI_ERR_FILE_DOES_NOT_EXIST -2
#define INI_ERR_FILE_ALREADY_EXISTS -3
#define INI_ERR_FILE_CREATION_FAILED -4
#define INI_ERR_MAX_FILE_LIMIT -5
#define INI_ERR_INVALID_HANDLE -6
#define INI_ERR_SYNTAX -7
#define INI_ERR_INVALID_ID -8
#define INI_ERR_INVALID_BOOL -9
#define INI_ERR_PARSING_FAILED -17

#define INI_SECTION_NOT_FOUND -10
#define INI_KEY_CREATE_FAILED -11
#define INI_SECTION_CREATED -12
#define INI_SECTION_CREATE_FAILED -13
#define INI_KEY_CREATED -14
#define INI_KEY_NOT_FOUND -15
#define INI_KEY_FOUND -16
Also note that CreateINI fails if the file already exists or you ran out of handles.

By default you can have a maximum of 2 active handles. You need to close the previous handle to make a free handle.

You can increase the number of handles by redefining INI_MAX_MULTI_FILES

Код:
#define INI_MAX_MULTI_FILES 128 //Your number of handles
Note that increasing this number means increasing your heap size (increase the RAM Memory consumption).
The ID I get is 0 before the WriteString and is 825516 after it
When I added Section it got working, but then I'm facing another problem:
I'm trying to write some stuff in a file but it keeps duplicating the section which causes problem on loading
Код:
new Path[30];
format(Path,30,"/Bizz/%d.ini",id);
new INI:bizzh = INI::CreateINI(Path);
CreatePickup(1239,1,xxa,yya,zza,0);
INI::WriteFloat(bizzh,xxa,"X","data");
INI::WriteFloat(bizzh,yya,"Y","data");
INI::WriteFloat(bizzh,zza,"Z","data");
INI::WriteInteger(bizzh,type,"Type","data");
INI::CloseINI(bizzh);
And the result is:
Код:
[data]
X=2246.384521
[data]
Y=53.340953
[data]
Z=26.667125
[data]
Type=1
So I'm not sure what I'm doing wrong, I've read your main post over and over but I can't figure it out(Perhaps because my English knowledge is not enough)
I'd be very happy if you could help me out
Thanks in advance.
Reply


Messages In This Thread
eXtended INI Processor - Fast & Feature Rich INI Processor - by Yashas - 08.05.2015, 07:17
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Gammix - 08.05.2015, 08:01
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Yashas - 08.05.2015, 08:07
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Whizion - 08.05.2015, 08:14
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Sellize - 08.05.2015, 08:36
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Amrev - 08.05.2015, 14:42
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by SpikY_ - 08.05.2015, 14:53
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Pottus - 08.05.2015, 15:02
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Yashas - 08.05.2015, 15:04
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Pottus - 08.05.2015, 15:12
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by iWhite - 27.05.2015, 19:37
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Yashas - 30.05.2015, 15:45
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by iWhite - 30.05.2015, 18:19
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Yashas - 30.05.2015, 18:52
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by iWhite - 30.05.2015, 18:57
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by theYiin - 17.06.2015, 17:47
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Yashas - 17.06.2015, 18:15
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by liquor - 12.07.2015, 19:18
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by HardWar - 12.07.2015, 22:39
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Yashas - 13.07.2015, 02:55
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by arvifilter - 18.08.2015, 13:41
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Yashas - 18.08.2015, 14:31
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by arvifilter - 18.08.2015, 15:20
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Yashas - 19.08.2015, 10:49
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Nixtren - 29.08.2015, 18:18
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Yashas - 31.08.2015, 10:16
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Stanford - 31.08.2015, 12:41
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by PrO.GameR - 01.09.2015, 16:39
Re: eXtended INI Processor - Fast & Feature Rich INI Processor - by Yashas - 01.09.2015, 19:45

Forum Jump:


Users browsing this thread: 2 Guest(s)