Problem with 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: Problem with YSI (
/showthread.php?tid=631293)
Problem with YSI -
andrejc999 - 26.03.2017
Hi guys.
So I wanted to switch from foreach(the old one) to new YSI y/iterate and I get many warnings when trying to compile my script idk why...
This is what my Pawn compiler says:
Код:
F:\Samp server\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\..\YSI_Internal\..\amx\asm.inc(130) : warning 219: local variable "base" shadows a variable at a preceding level
F:\Samp server\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\..\YSI_Internal\..\amx\disasm.inc(231) : warning 219: local variable "ip" shadows a variable at a preceding level
F:\Samp server\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(356) : warning 219: local variable "base" shadows a variable at a preceding level
F:\Samp server\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(404) : warning 219: local variable "base" shadows a variable at a preceding level
F:\Samp server\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(449) : warning 219: local variable "base" shadows a variable at a preceding level
F:\Samp server\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(625) : warning 219: local variable "base" shadows a variable at a preceding level
F:\Samp server\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\y_utils.inc(230) : warning 219: local variable "ip" shadows a variable at a preceding level
F:\Samp server\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\y_utils.inc(488) : warning 219: local variable "ip" shadows a variable at a preceding level
F:\Samp server\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\y_utils.inc(540) : warning 219: local variable "base" shadows a variable at a preceding level
F:\Samp server\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\y_utils.inc(908) : warning 219: local variable "base" shadows a variable at a preceding level
F:\Samp server\pawno\include\YSI\..\YSI_Data\..\YSI_Coding\y_hooks/impl.inc(876) : warning 219: local variable "base" shadows a variable at a preceding level
F:\Samp server\pawno\include\YSI\..\YSI_Data\y_foreach/iterators.inc(261) : warning 219: local variable "base" shadows a variable at a preceding level
F:\Samp server\pawno\include\YSI\..\YSI_Data\y_foreach/iterators.inc(776) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicle")
F:\Samp server\pawno\include\YSI\..\YSI_Data\y_foreach/iterators.inc(800) : warning 201: redefinition of constant/macro (symbol "AddStaticVehicleEx")
F:\Samp server\gamemodes\BalkanKingRP.pwn(11309) : warning 219: local variable "using_deprecated_foreach_syntax" shadows a variable at a preceding level
F:\Samp server\gamemodes\BalkanKingRP.pwn(18445) : warning 219: local variable "using_deprecated_foreach_syntax" shadows a variable at a preceding level
F:\Samp server\gamemodes\BalkanKingRP.pwn(18908) : warning 219: local variable "using_deprecated_foreach_syntax" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
17 Warnings.
Re: Problem with YSI -
RobyRbb - 26.03.2017
Exemple:
Код:
public TestFunction()
{
new test;
if(Example)
{
new test;
test = 1;
}
}
Note the variable "test" to fix the error, take one of the variables out.
Re: Problem with YSI -
andrejc999 - 26.03.2017
Yeah ik but the thing is, my line 130 is
#define DIALOG_VOZILODRUGISLOT 25 //it's a dialog define
then my line 231 is an empty line and so on...
It's just weird idk
EDIT:fixed a few of them but still 14 remaining(I forgot to change the old foreach loops)
Re: Problem with YSI -
andrejc999 - 26.03.2017
Fixed! Thx I just had to change the name of few variables...