Posts: 68
Threads: 5
Joined: Jul 2015
Posts: 48
Threads: 21
Joined: Jul 2012
Reputation:
0
[14/01/2017 04:44:57] [debug] #0 00016c58 in INI_OpenFileInstance (file[]=@04a581b0 "Others/race_0.ini") at F:\Pawno\include\dini.inc:103
[14/01/2017 04:44:57] [debug] #1 000174b8 in dini_Get (file[]=@04a581b0 "Others/race_0.ini", field[]=@037baf10 "Created") at F:\Pawno\include\dini.inc:171
[14/01/2017 04:44:57] [debug] #2 000176cc in dini_Int (file[]=@04a581b0 "Others/race_0.ini", field[]=@037baf10 "Created") at F:\Pawno\include\dini.inc:193
[14/01/2017 04:44:57] [debug] #3 000cd9ac in LoadRace () at E:\srv\gamemodes\a.pwn:4778
Posts: 68
Threads: 5
Joined: Jul 2015
IDK what's going on. Gammix create a script with code:
dini_Int
dini_IntSet
dini_Unset
dini_IntSet
And it's totally bugged, no changes in file.
Posts: 1,773
Threads: 47
Joined: Jan 2015
Reputation:
0
Are you using v2.4.2?
Cause that problem was fixed in v.2.4.2 already!
Posts: 1,042
Threads: 46
Joined: Jun 2013
Quote:
Originally Posted by Gammix
Update v2.4.2:
- Fixed file timeout issue, array wasn't adjusted properly resulting "array index out of bounds" error.
|
Version
2.4.2 already was. Maybe you want to say
2.4.3?
Posts: 68
Threads: 5
Joined: Jul 2015
Quote:
Originally Posted by Gammix
Are you using v2.4.2?
Cause that problem was fixed in v.2.4.2 already!
|
Yes bro. It's really bugged. You can test it...
Posts: 68
Threads: 5
Joined: Jul 2015
Код:
#include <a_samp>
#include <gini>
#include <zcmd>
CMD:mycommand(playerid, param[])
{
dini_Create("test.ini");
dini_Set("test.ini", "Set1", "Set");
dini_IntSet("test.ini", "Set2", 1);
dini_Set("test.ini", "Set3", "Sett");
return 1;
}
CMD:mycommand2(playerid, param[])
{
dini_IntSet("test.ini", "Set2", 0);
dini_IntSet("test.ini", "Set1", 1);
dini_UnSet("test.ini", "Set2");
dini_UnSet("test.ini", "Set3");
dini_IntSet("test.ini", "Set5", 1);
return 1;
}
and dini_Unset work incorrect
Posts: 1,773
Threads: 47
Joined: Jan 2015
Reputation:
0
Update v2.4.3:
- Fixed file array shifting which was causing trouble in saving files present on second index. Now all Set, Get and UnSet functions will be effective!
Posts: 2,698
Threads: 37
Joined: Mar 2012
Reputation:
0
I just ran through your include and noted few things that has to be changed:
- You shouldn't consider using format to copy strings, use memcpy or strcat instead.
- INI_StripLine isn't defined in your include.
Posts: 68
Threads: 5
Joined: Jul 2015
Now all working fine, but in console i get : [dini2] - Error: File name not specified while opening file.
But saving/reading done correctly, lol.
Posts: 68
Threads: 5
Joined: Jul 2015
Gammix my server was crashed after 2 hours.
Crashdetect:
[debug] #0 0000102c in public OnFileTimeout (2) from teamDM.amx
[debug] Run time error 4: "Array index out of bounds"
What's going on?
Posts: 294
Threads: 12
Joined: Sep 2015
Reputation:
0
I saw that but was only 10 fields. I have many more. It will scale?
Posts: 68
Threads: 5
Joined: Jul 2015
Bug with double value saving is still available, please do check it.
Posts: 150
Threads: 22
Joined: May 2017
Reputation:
0
sorry im nubis scripter.i want to no can createdynamicobject save with dini or anything that can save thing
Posts: 579
Threads: 18
Joined: Apr 2017
Reputation:
0
Can you add ignore case in dini_exists?