01.06.2017, 04:39
Enumerator:
Errors:
Line 3660:
Line 3661
Whole code of Line 3660 and 3661
Line 28917
Whole code of Line 28917
PHP код:
enum factinfo
{
ftID,
ftProducts,
ftNeededProducts
};
new FactoryInfo[MAX_FACTORIES][factinfo];
PHP код:
(3660) : warning 213: tag mismatch
(3661) : warning 213: tag mismatch
(28917) : warning 213: tag mismatch
Код:
INI_WriteInt(File,"Products", FactionInfo[idv][ftProducts]);
Код:
INI_WriteInt(File,"NeededProducts", FactionInfo[idv][ftNeededProducts]);
PHP код:
for(new idv = 1; idv < sizeof(FactoryInfo); idv++)
{
new file4[40];
format(file4, sizeof(file4), FTPATH, idv);
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);
}
Код:
INI_WriteInt(File,"NeededProducts", FactionInfo[idv][ftNeededProducts]);
PHP код:
for(new idv = 1; idv < sizeof(FactoryInfo); idv++)
{
new file4[40];
format(file4, sizeof(file4), FTPATH, idv);
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);
}