SA-MP Forums Archive
warning 201 from YSI - 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 201 from YSI (/showthread.php?tid=648282)



warning 201 from YSI - cuchipkg - 19.01.2018

how fix this warning?
Код:
C:\Users\cuchi\Desktop\poco2\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.
line error
Код:
	TextDrawUseBox(HinhAnhDangNhap15, true);
server log
Код:
v0.3.7-R2, ©2005-2015 SA-MP Team

[18:09:48] filterscripts = ""  (string)
[18:09:48] 
[18:09:48] Server Plugins
[18:09:48] --------------
[18:09:48]  Loading plugin: MapAndreas
[18:09:48]   Loaded.
[18:09:48]  Loading plugin: mysql
[18:09:49]  >> plugin.mysql: R41-4 successfully loaded.
[18:09:49]   Loaded.
[18:09:49]  Loading plugin: sscanf
[18:09:49] 

[18:09:49]  ===============================

[18:09:49]       sscanf plugin loaded.     

[18:09:49]          Version:  2.8.2        

[18:09:49]    © 2012 Alex "******" Cole  

[18:09:49]  ===============================

[18:09:49]   Loaded.
[18:09:49]  Loading plugin: streamer
[18:09:49] 

*** Streamer Plugin v2.9.1 by Incognito loaded ***

[18:09:49]   Loaded.
[18:09:49]  Loading plugin: Whirlpool
[18:09:49]  
[18:09:49]  ==================
[18:09:49]  
[18:09:49]   Whirlpool loaded
[18:09:49]  
[18:09:49]  ==================
[18:09:49]  
[18:09:49]   Loaded.
[18:09:49]  Loaded 5 plugins.

[18:09:49] 
[18:09:49] Filterscripts
[18:09:49] ---------------
[18:09:49]   Loaded 0 filterscripts.

[18:09:49] This server folder has been put together by Ricky Phelps.
[18:09:49]  
[18:09:49]  
[18:09:49]  
[18:09:49]  ======================================= 
[18:09:49]  |                                     | 
[18:09:49]  |        YSI version 4.00.0001        | 
[18:09:49]  |        By Alex "******" Cole        | 
[18:09:49]  |                                     | 
[18:09:49]  ======================================= 
[18:09:49]  
[18:09:49] *** YSI Warning: y_malloc set up via "CallLocalFunction", memory corruption is a remote possibility
[18:09:49] 
|-------------PoCo-------------|
[18:09:49] -------Gamemode By CuChip-------
[18:09:49] |-------------PoCo-------------|

[18:09:49] [Du Lieu] Ket Noi Vung Du Lieu Thanh Cong
[18:09:49] Number of vehicle models: 0



Re: warning 201 from YSI - Misiur - 19.01.2018

Could you search your gamemode for something like "#define isnull"? If you find it, remove the whole line as it is already provided by YSI.


Re: warning 201 from YSI - RogueDrifter - 19.01.2018

you didn't need to post the server log nor that fake line, first of all let me explain what happened here, line 430 is not meant to be the line in your script if you read the warning it says:
Код:
\YSI_Data\..\YSI_Internal\..\YSI_Core\y_utils.inc(430)
see that, it gave you the location of the file, it's the y_utils include it already has isnull defined which is also either defined in your script or in another include that's what redefinition of constant/macro means, what you can do is either search through your includes and remove the redefinition of constant/macro or rename the one in y_utils but idk if that will cause problems i suggest renaming/removing the other one.


Re: warning 201 from YSI - cuchipkg - 19.01.2018

Quote:
Originally Posted by Misiur
Посмотреть сообщение
Could you search your gamemode for something like "#define isnull"? If you find it, remove the whole line as it is already provided by YSI.
i can't see define isnull and remove the redefinition of constant/macro but it not working


Re: warning 201 from YSI - RogueDrifter - 19.01.2018

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
you didn't need to post the server log nor that fake line, first of all let me explain what happened here, line 430 is not meant to be the line in your script if you read the warning it says:
Код:
\YSI_Data\..\YSI_Internal\..\YSI_Core\y_utils.inc(430)
see that, it gave you the location of the file, it's the y_utils include it already has isnull defined which is also either defined in your script or in another include that's what redefinition of constant/macro means, what you can do is either search through your includes and remove the redefinition of constant/macro or rename the one in y_utils but idk if that will cause problems i suggest renaming/removing the other one.
If someone takes his time to post a reply to help you, you take your time to read his post.