PDA

View Full Version : Problem: zeex patch and YSI.


Unrea1
06/07/2016, 05:20 AM
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:

D:\Pawn\samp037_svr_R2_win32\pawno\include\YSI\YSI _Coding\..\YSI_Storage\..\YSI_Internal\..\amx\code scan.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\code scan.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\code scan.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\code scan.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(62 1) : 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(65 5) : error 021: symbol already defined: "getstring"
D:\Pawn\samp037_svr_R2_win32\pawno\include\YSI\YSI _Coding\..\YSI_Internal\..\YSI_Core\y_utils.inc(65 9) : 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(66 0) : 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.p wn(21) : warning 203: symbol is never used: "ret"
Pawn compiler 3.10.20160702 Copyright (c) 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.

darkhunter332
06/07/2016, 05:30 AM
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.

Unrea1
06/07/2016, 05:45 AM
Well, I changed the YSI and I put the same amx_assembly, and these are the mistakes that cast:

D:\Pawn\pawno\include\YSI\YSI_Coding\..\YSI_Intern al\..\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_Intern al\..\YSI_Core\y_utils.inc(653) : error 021: symbol already defined: "getstring"
D:\Pawn\pawno\include\YSI\YSI_Coding\..\YSI_Intern al\..\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_Intern al\..\YSI_Core\y_utils.inc(658) : error 010: invalid function or declaration
D:\Pawn\pawno\include\YSI\YSI_Coding\..\YSI_Intern al\..\YSI_Core\..\YSI_Coding\y_va/impl.inc(470) : error 025: function heading differs from prototype
D:\Pawn\pawno\include\YSI\YSI_Coding\..\YSI_Intern al\..\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 (c) 1997-2006, ITB CompuPhase