Enumerator Tag Mismatch - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Enumerator Tag Mismatch (
/showthread.php?tid=635084)
Enumerator Tag Mismatch -
NealPeteros - 01.06.2017
Enumerator:
PHP код:
enum factinfo
{
ftID,
ftProducts,
ftNeededProducts
};
new FactoryInfo[MAX_FACTORIES][factinfo];
Errors:
PHP код:
(3660) : warning 213: tag mismatch
(3661) : warning 213: tag mismatch
(28917) : warning 213: tag 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 = 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);
}
Line 28917
Код:
INI_WriteInt(File,"NeededProducts", FactionInfo[idv][ftNeededProducts]);
Whole code of Line 28917
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);
}
Re: Enumerator Tag Mismatch -
Speaker - 01.06.2017
show me your code of FTPATH
Re: Enumerator Tag Mismatch -
NealPeteros - 01.06.2017
solved didn't notice that I used "FactionInfo" instead of "FactoryInfo"