22.12.2011, 13:43
Yes, it does exists
There's the TotalGangs variable which also works, so yeah, maybe something wrong with the code I provided in the first post?
pawn Код:
// This is my define for Gang_File
#define Gang_File "Gangs/%d.ini"
new TotalGangs;
public OnGameModeInit()
{
if(!DOF_FileExists(CFG_File))
{
DOF_CreateFile(CFG_File);
DOF_SetInt(CFG_File, "Gangs", 0);
print("CFG File created");
}
else
{
TotalGangs = DOF_GetInt(CFG_File, "Gangs");
for(new i = 0; i <= TotalGangs; i++)
{
GangInfo[i][Gangs] = i;
}
printf("CFG File loaded. %d gangs loaded", TotalGangs);
}
DOF_SaveFile();
return 1;
}