Enumerator Tag Mismatch
#1

Enumerator:
PHP код:
enum factinfo
{
    
ftID,
    
ftProducts,
    
ftNeededProducts
};
new 
FactoryInfo[MAX_FACTORIES][factinfo]; 
Errors:
PHP код:
(3660) : warning 213tag mismatch
(3661) : warning 213tag mismatch
(28917) : warning 213tag mismatch 
Line 3660:
Код:
INI_WriteInt(File,"Products", FactionInfo[idv][ftProducts]);
Line 3661
Код:
INI_WriteInt(File,"NeededProducts", FactionInfo[idv][ftNeededProducts]);
Whole code of Line 3660 and 3661
PHP код:
for(new idv 1idv sizeof(FactoryInfo); idv++)
{
        new 
file4[40];
    
format(file4sizeof(file4), FTPATHidv);
     new 
INI:File INI_Open(file4);
     
INI_SetTag(File,"data");
     
INI_WriteInt(File,"ID"FactoryInfo[idv][ftID]);
     
INI_WriteInt(File,"Products"FactionInfo[idv][ftProducts]);
     
INI_WriteInt(File,"NeededProducts"FactionInfo[idv][ftNeededProducts]);
     
INI_Close(File);

Line 28917
Код:
INI_WriteInt(File,"NeededProducts", FactionInfo[idv][ftNeededProducts]);
Whole code of Line 28917
PHP код:
for(new idv 1idv sizeof(FactoryInfo); idv++)
    {
        new 
file4[40];
        
format(file4sizeof(file4), FTPATHidv);
        new 
INI:File INI_Open(file4);
        
INI_SetTag(File,"data");
        
INI_WriteInt(File,"ID"FactoryInfo[idv][ftID]);
        
INI_WriteInt(File,"Products"FactoryInfo[idv][ftProducts]);
        
INI_WriteInt(File,"NeededProducts"FactionInfo[idv][ftNeededProducts]);
        
INI_Close(File);
    } 
Reply
#2

show me your code of FTPATH
Reply
#3

solved didn't notice that I used "FactionInfo" instead of "FactoryInfo"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)