06.08.2013, 19:29
Hey... in addition to my previous thread, I've got another problem with y_ini.
The values save perfectly into the right key in the file, but they are not read, at all.
This code saved perfectly. When I open the files after unloading the FS, I see all the values as they should.
On the other hand:
These values just won't load back into their variables. The vars stay null.
To check it out I've tried printing the values RIGHT after loading them:
Results:
All other 20+ variables are saved AND read perfectly, these 4 just won't.
I have no idea how to fix it... I tried using binaries(because vehicle damage status do print out as binary numbers), and again, the damage saved perfectly (0b0001000,...) but after loading, it came back to be 0.
The values save perfectly into the right key in the file, but they are not read, at all.
pawn Код:
INI_WriteInt(File, "panel", vInfo[v][panel]);
INI_WriteInt(File, "door", vInfo[v][door]);
INI_WriteInt(File, "light", vInfo[v][light]);
INI_WriteInt(File, "tire", vInfo[v][tire]);
On the other hand:
pawn Код:
INI_Int("panel", vInfo[v][panel]);
INI_Int("door", vInfo[v][door]);
INI_Int("light", vInfo[v][light]);
INI_Int("tire", vInfo[v][tire]);
To check it out I've tried printing the values RIGHT after loading them:
pawn Код:
INI_Int("panel", vInfo[v][panel]);
INI_Int("door", vInfo[v][door]);
INI_Int("light", vInfo[v][light]);
INI_Int("tire", vInfo[v][tire]);
printf("%d | %d | %d | %d | %d", v, vInfo[v][panel] , vInfo[v][door] , vInfo[v][light], vInfo[v][tire] );
Quote:
5 | 0 | 0 | 0 | 0 |
I have no idea how to fix it... I tried using binaries(because vehicle damage status do print out as binary numbers), and again, the damage saved perfectly (0b0001000,...) but after loading, it came back to be 0.