11.09.2016, 07:19
Hello.
There is a problem that I can't find any explanation of. One int simply saves to file multiple times (2-3), and it screws up the loading of this int. Here's the code:
Frakcje.ini after saving:
There is nothing wrong with the code, so what's up with that
There is a problem that I can't find any explanation of. One int simply saves to file multiple times (2-3), and it screws up the loading of this int. Here's the code:
PHP Code:
new INI:ini = INI_Open("Frakcje.ini"); // OnGameModeExit
INI_WriteInt(ini, "Strefa_0", Strefa[0][sFrakcja]);
INI_WriteInt(ini, "Strefa_1", Strefa[1][sFrakcja]);
INI_WriteInt(ini, "Strefa_2", Strefa[2][sFrakcja]);
INI_WriteInt(ini, "Strefa_3", Strefa[3][sFrakcja]);
INI_WriteInt(ini, "Strefa_4", Strefa[4][sFrakcja]);
INI_WriteInt(ini, "Strefa_5", Strefa[5][sFrakcja]);
INI_WriteInt(ini, "Strefa_6", Strefa[6][sFrakcja]);
INI_WriteInt(ini, "Strefa_7", Strefa[7][sFrakcja]);
INI_WriteInt(ini, "Strefa_8", Strefa[8][sFrakcja]);
INI_WriteInt(ini, "Strefa_9", Strefa[9][sFrakcja]);
INI_WriteInt(ini, "Strefa_10", Strefa[10][sFrakcja]);
INI_WriteInt(ini, "Strefa_11", Strefa[11][sFrakcja]);
INI_WriteInt(ini, "Strefa_12", Strefa[12][sFrakcja]);
INI_WriteInt(ini, "Strefa_13", Strefa[13][sFrakcja]);
INI_WriteInt(ini, "Strefa_14", Strefa[14][sFrakcja]);
INI_Close(ini);
PHP Code:
Strefa_0 = 4
Strefa_1 = 5
Strefa_2 = 4
Strefa_3 = 3
Strefa_4 = 3
Strefa_5 = 1
Strefa_6 = 1
Strefa_7 = 6
Strefa_8 = 6
Strefa_9 = 1
Strefa_10 = 2
Strefa_11 = 2
Strefa_12 = 2
Strefa_13 = 2
Strefa_14 = 5Strefa_1 = 3
Strefa_1 = 1
