i got warning from y_utils.inc - 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: i got warning from y_utils.inc (
/showthread.php?tid=660156)
i got warning from y_utils.inc -
3417512908 - 26.10.2018
Код:
E:\Server\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\y_utils.inc(430) : warning 201: redefinition of constant/macro (symbol "isnull(%1)")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
i just use ysi last update version.how to fix it please
Re: i got warning from y_utils.inc -
Calisthenics - 26.10.2018
Include YSI libraries after a_samp.inc and then any other include.
Re: i got warning from y_utils.inc -
TheToretto - 26.10.2018
Open y_utils.inc and remove the definition of isnull, already had that, and that's the way I solved it. It's usually because you have two or more includes redefining the 'isnull' macro.
Re: i got warning from y_utils.inc -
Infin1ty - 26.10.2018
Quote:
Originally Posted by TheToretto
Open y_utils.inc and remove the definition of isnull, already had that, and that's the way I solved it. It's usually because you have two or more includes redefining the 'isnull' macro.
|
This is something you should NOT do. Never modify includes, they were made the way they are meant to be.
Код:
#if !defined isnull
#define isnull(%1) ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
There's your solution.
Or even simpler, get rid of your isnull definition completely.
Re: i got warning from y_utils.inc -
3417512908 - 26.10.2018
Quote:
Originally Posted by Calisthenics
Include YSI libraries after a_samp.inc and then any other include.
|
yes it is work.0 warning(s) 0 error(s)
Re: i got warning from y_utils.inc -
Riddick94 - 26.10.2018
y_tho