Quote:
Originally Posted by illuminati2
try replacing
1.
2.
PHP код:
new FactionInfo[MAX_FACTIONS][FacInfo];
3.
PHP код:
if (j < 8)
{
else if(strcmp(key, "FactionSkins") == 0) FacInfo[i][FactionSkins][j] = strval(line[s]);
}
else
{
else if(strcmp(key, "FactionWeapons") == 0) FacInfo[i][FactionWeapons][j] = strval(line[s]);
else if(strcmp(key, "FactionAmmo") == 0) FacInfo[i][FactionAmmo][j] = strval(line[s]);
}
With
1.
PHP код:
enum FacInfo_ENUM
2.
PHP код:
new FacInfo[MAX_FACTIONS][FacInfo_ENUM];
3.
PHP код:
if (j < 8)
{
if(strcmp(key, "FactionSkins") == 0) FacInfo[i][FactionSkins][j] = strval(line[s]);
}
else
{
if(strcmp(key, "FactionWeapons") == 0) FacInfo[i][FactionWeapons][j] = strval(line[s]);
else if(strcmp(key, "FactionAmmo") == 0) FacInfo[i][FactionAmmo][j] = strval(line[s]);
}
Now it's compiling fine for me.
|
Wow that actually did work, I understand replacing the else if with if as that was a mistake by me, but got any explanation for renaming the enum? Thanks!