Problem with YSI
#1

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

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

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

Fixed! Thx I just had to change the name of few variables...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)