24.01.2016, 21:00
I feel like and idiot for not knowing what causes it.
The problem is it saves only from sEQ_0 to sEQ_18. What about sEQ_19?
I even tried doing it like this:
And it still doesn't save sEQ_19. 
When I set #define MAX_SLOTS to 10 it works fine (saves from 0 to 9)
Код:
// define at the top ofc
#define MAX_SLOTS 20
// onplayerdisconnect
new string[32];
for(new i; i < MAX_SLOTS; i++)
{
format(string, sizeof(string), "sEQ_%d", i);
INI_WriteInt(File, string, sEQ[playerid][i]);
}
I even tried doing it like this:
Код:
INI_WriteInt(File, sEQ_0, sEQ[playerid][0]); INI_WriteInt(File, sEQ_1, sEQ[playerid][1]); ... INI_WriteInt(File, sEQ_18, sEQ[playerid][18]); INI_WriteInt(File, sEQ_19, sEQ[playerid][19]);

When I set #define MAX_SLOTS to 10 it works fine (saves from 0 to 9)



