SA-MP Forums Archive
Problems Gm - 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: Problems Gm (/showthread.php?tid=308254)



Problems Gm - saringan_cs - 02.01.2012

pawn Код:
D:\sERveR\samp03\pawno\include\JunkBuster.inc(2338) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(3010) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(5789) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(6494) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(6494) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(6494) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(6956) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(6956) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(6956) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(6968) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(6968) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(6968) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(10009) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(13668) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(14358) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(14454) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(14603) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(14702) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(15089) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(15129) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(15179) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(15218) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(15258) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(15294) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(15355) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(15518) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(15681) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(15959) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(17782) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(19302) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(19509) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(19580) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(20194) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(20566) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(20607) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(20783) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(20817) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(20896) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(21000) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(21116) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(21149) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(21263) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(21319) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(22663) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(22720) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(23090) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(25012) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(25012) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(25012) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(25110) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(25523) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(25619) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(25693) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(25752) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(27653) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(27653) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(27653) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(28028) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(28534) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(28656) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(28718) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(28718) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(28718) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(28771) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(29433) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(29457) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(29481) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(30214) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(30348) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(31017) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(31051) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(34676) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(34676) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(34676) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(35572) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(35572) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(35572) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(35613) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(35613) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(35613) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(35662) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(35662) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(35662) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(36179) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(36268) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(36504) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(37385) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(38891) : warning 219: local variable "length" shadows a variable at a preceding level
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(40588) : warning 217: loose indentation
C:\Users\Best-Life\Desktop\New Folder\gamemodes\God.pwn(40609) : warning 203: symbol is never used: "length"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:          10088 bytes
Code size:          1819528 bytes
Data size:          5813840 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4124 cells (16496 bytes)
Total requirements: 7659840 bytes

90 Warnings.
I don't use JunkBuster !!!


Re: Problems Gm - Bakr - 02.01.2012

You are creating both global and local variables with the same name. You will need to re-name one of the two.


Re: Problems Gm - Gh05t_ - 02.01.2012

Quote:
Originally Posted by Bakr
Посмотреть сообщение
You are creating both global and local variables with the same name. You will need to re-name one of the two.
This may not always be the case. Defining variables within the same region of code (scope) may also cause this error.

pawn Код:
stock Function()
{
    new bool:variable = false;
    if(variable == false)
    {
        new variable;
    }
}



Re: Problems Gm - Bakr - 02.01.2012

Yes, true. I forgot to mention that.