warning 213: 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: warning 213: tag mismatch (
/showthread.php?tid=639481)
warning 213: tag mismatch -
LStrike17 - 18.08.2017
hello, i'm working on code.. i make to save cfg but i got warning
warning 213: tag mismatch
Код:
forward UcitajCFG(name[], value[]);
public UcitajCFG(name[], value[])
{
INI_Int("HappyHour",CFG[cHappy]); // here is warning
return 1;
}
Re: warning 213: tag mismatch -
TheCman - 18.08.2017
Can you show us where your CFG enum is declared? You might be missing a _: there, like so:
Код:
INI_Int("HappyHour", _:CFG[cHappy]); // here is warning
Please let me know if this helps!
Re: warning 213: tag mismatch -
LStrike17 - 18.08.2017
Код:
enum config
{
bool:cHappy
};
new CFG[config];
Re: warning 213: tag mismatch -
TheCman - 18.08.2017
That seems to confirm what I was saying. Either you remove bool: in your enum, either you add _: in your INI_Int() argument. If there is a INI_Bool() available, it would be best to use this instead.
Re: warning 213: tag mismatch -
LStrike17 - 19.08.2017
thanks. rep+