Error 028: invalid subscript (not an array or too many subscripts):
#1

Problem fixed, thanks.
Reply
#2

try replacing

1.
PHP код:
enum FacInfo 
2.
PHP код:
new FactionInfo[MAX_FACTIONS][FacInfo]; 
3.
PHP код:
                if (8)
                {
                    else if(
strcmp(key"FactionSkins") == 0FacInfo[i][FactionSkins][j] = strval(line[s]);
                }
                else
                {
                    else if(
strcmp(key"FactionWeapons") == 0FacInfo[i][FactionWeapons][j] = strval(line[s]);
                    else if(
strcmp(key"FactionAmmo") == 0FacInfo[i][FactionAmmo][j] = strval(line[s]);
                } 
With

1.
PHP код:
enum FacInfo_ENUM 
2.
PHP код:
new FacInfo[MAX_FACTIONS][FacInfo_ENUM]; 
3.
PHP код:
                if (8)
                {
                    if(
strcmp(key"FactionSkins") == 0FacInfo[i][FactionSkins][j] = strval(line[s]);
                }
                else
                {
                    if(
strcmp(key"FactionWeapons") == 0FacInfo[i][FactionWeapons][j] = strval(line[s]);
                    else if(
strcmp(key"FactionAmmo") == 0FacInfo[i][FactionAmmo][j] = strval(line[s]);
                } 
Now it's compiling fine for me.

Edit:- You're welcome
Reply
#3

Quote:
Originally Posted by illuminati2
Посмотреть сообщение
try replacing

1.
PHP код:
enum FacInfo 
2.
PHP код:
new FactionInfo[MAX_FACTIONS][FacInfo]; 
3.
PHP код:
                if (8)
                {
                    else if(
strcmp(key"FactionSkins") == 0FacInfo[i][FactionSkins][j] = strval(line[s]);
                }
                else
                {
                    else if(
strcmp(key"FactionWeapons") == 0FacInfo[i][FactionWeapons][j] = strval(line[s]);
                    else if(
strcmp(key"FactionAmmo") == 0FacInfo[i][FactionAmmo][j] = strval(line[s]);
                } 
With

1.
PHP код:
enum FacInfo_ENUM 
2.
PHP код:
new FacInfo[MAX_FACTIONS][FacInfo_ENUM]; 
3.
PHP код:
                if (8)
                {
                    if(
strcmp(key"FactionSkins") == 0FacInfo[i][FactionSkins][j] = strval(line[s]);
                }
                else
                {
                    if(
strcmp(key"FactionWeapons") == 0FacInfo[i][FactionWeapons][j] = strval(line[s]);
                    else if(
strcmp(key"FactionAmmo") == 0FacInfo[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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)