i got warning from y_utils.inc
#1

Код:
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
Reply
#2

Include YSI libraries after a_samp.inc and then any other include.
Reply
#3

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.
Reply
#4

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.
Reply
#5

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)
Reply
#6

y_tho
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)