Problem: zeex patch and YSI.
#1

Zeex just updated the compiler three days ago, so I put the YSI library to use y_timers https://github.com/Misiur/YSI-Includes, the problem is that gives me the following errors:

Code:
D:\Pawn\samp037_svr_R2_win32\pawno\include\YSI\YSI_Coding\..\YSI_Storage\..\YSI_Internal\..\amx\codescan.inc(769) : warning 219: local variable "ret" shadows a variable at a preceding level
D:\Pawn\samp037_svr_R2_win32\pawno\include\YSI\YSI_Coding\..\YSI_Storage\..\YSI_Internal\..\amx\codescan.inc(776) : warning 219: local variable "ret" shadows a variable at a preceding level
D:\Pawn\samp037_svr_R2_win32\pawno\include\YSI\YSI_Coding\..\YSI_Storage\..\YSI_Internal\..\amx\codescan.inc(783) : warning 219: local variable "ret" shadows a variable at a preceding level
D:\Pawn\samp037_svr_R2_win32\pawno\include\YSI\YSI_Coding\..\YSI_Storage\..\YSI_Internal\..\amx\codescan.inc(789) : warning 219: local variable "ret" shadows a variable at a preceding level
D:\Pawn\samp037_svr_R2_win32\pawno\include\YSI\YSI_Coding\..\YSI_Internal\..\YSI_Core\y_utils.inc(621) : warning 219: local variable "ret" shadows a variable at a preceding level
D:\Pawn\samp037_svr_R2_win32\pawno\include\YSI\YSI_Coding\..\YSI_Internal\..\YSI_Core\y_utils.inc(655) : error 021: symbol already defined: "getstring"
D:\Pawn\samp037_svr_R2_win32\pawno\include\YSI\YSI_Coding\..\YSI_Internal\..\YSI_Core\y_utils.inc(659) : warning 219: local variable "ret" shadows a variable at a preceding level
D:\Pawn\samp037_svr_R2_win32\pawno\include\YSI\YSI_Coding\..\YSI_Internal\..\YSI_Core\y_utils.inc(660) : error 010: invalid function or declaration
D:\Pawn\samp037_svr_R2_win32\pawno\include\YSI\YSI_Coding\..\YSI_Internal\..\YSI_Core\..\YSI_Coding\y_va/impl.inc(470) : error 025: function heading differs from prototype
D:\Pawn\samp037_svr_R2_win32\pawno\include\YSI\YSI_Coding\..\YSI_Internal\..\YSI_Core\..\YSI_Coding\y_va/impl.inc(470) : error 025: function heading differs from prototype
D:\Pawn\samp037_svr_R2_win32\pawno\include\YSI\YSI_Coding\..\YSI_Data\..\YSI_Coding\..\YSI_Internal\y_cgen.inc(80) : warning 219: local variable "ret" shadows a variable at a preceding level
D:\Pawn\samp037_svr_R2_win32\pawno\include\YSI\YSI_Coding\..\YSI_Data\..\YSI_Coding\y_hooks/impl.inc(872) : warning 219: local variable "ret" shadows a variable at a preceding level
D:\Pawn\samp037_svr_R2_win32\gamemodes\timertest.pwn(21) : warning 203: symbol is never used: "ret"
Pawn compiler 3.10.20160702	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
I have also updated what would be the assembly_amx: https://github.com/Zeex/amx_assembly/

Any help ?, or at least if there is y_timers without all the YSI library, thanks.
Reply
#2

Ah,
I also updated the YSI files,
Had the same errors, I've fixed them but i don't remember though.

https://github.com/Misiur/YSI-Includes -- Take a look into it

https://github.com/Southclaw/YSI-4.0 - May be the same but look for new/needed files there.

Make sure you added the includes in the right folder, It may confuse you because new YSI files are working pretty much different now.
Reply
#3

Well, I changed the YSI and I put the same amx_assembly, and these are the mistakes that cast:

Code:
D:\Pawn\pawno\include\YSI\YSI_Coding\..\YSI_Internal\..\YSI_Core\y_utils.inc(619) : warning 219: local variable "ret" shadows a variable at a preceding level
D:\Pawn\pawno\include\YSI\YSI_Coding\..\YSI_Internal\..\YSI_Core\y_utils.inc(653) : error 021: symbol already defined: "getstring"
D:\Pawn\pawno\include\YSI\YSI_Coding\..\YSI_Internal\..\YSI_Core\y_utils.inc(657) : warning 219: local variable "ret" shadows a variable at a preceding level
D:\Pawn\pawno\include\YSI\YSI_Coding\..\YSI_Internal\..\YSI_Core\y_utils.inc(658) : error 010: invalid function or declaration
D:\Pawn\pawno\include\YSI\YSI_Coding\..\YSI_Internal\..\YSI_Core\..\YSI_Coding\y_va/impl.inc(470) : error 025: function heading differs from prototype
D:\Pawn\pawno\include\YSI\YSI_Coding\..\YSI_Internal\..\YSI_Core\..\YSI_Coding\y_va/impl.inc(470) : error 025: function heading differs from prototype
D:\Pawn\pawno\include\YSI\YSI_Coding\..\YSI_Coding\..\YSI_Internal\y_cgen.inc(80) : warning 219: local variable "ret" shadows a variable at a preceding level
D:\Pawn\pawno\include\YSI\YSI_Coding\..\YSI_Coding\y_hooks/impl.inc(812) : warning 219: local variable "ret" shadows a variable at a preceding level
timertest.pwn(21) : warning 203: symbol is never used: "ret"
Pawn compiler 3.10.20160702	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)