SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 02/01/2012, 08:39 PM   #1
saringan_cs
Big Clucker
 
Join Date: Dec 2011
Location: http://imageshack.us/photo/my-images/820/ggcopy.png/
Posts: 158
Reputation: 1
Default Problems Gm

pawn Code:
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 !!!
saringan_cs is offline   Reply With Quote
Old 02/01/2012, 09:08 PM   #2
Bakr
Gangsta
 
Join Date: Apr 2011
Posts: 975
Reputation: 198
Default Re: Problems Gm

You are creating both global and local variables with the same name. You will need to re-name one of the two.
Bakr is offline   Reply With Quote
Old 02/01/2012, 09:16 PM   #3
Gh05t_
Big Clucker
 
Gh05t_'s Avatar
 
Join Date: Dec 2011
Posts: 192
Reputation: 140
Default Re: Problems Gm

Quote:
Originally Posted by Bakr View Post
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 Code:
stock Function()
{
    new bool:variable = false;
    if(variable == false)
    {
        new variable;
    }
}
Gh05t_ is offline   Reply With Quote
Old 02/01/2012, 09:25 PM   #4
Bakr
Gangsta
 
Join Date: Apr 2011
Posts: 975
Reputation: 198
Default Re: Problems Gm

Yes, true. I forgot to mention that.
Bakr is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you see problems with this? [IL]HeHu Scripting Help 2 10/09/2011 12:33 PM
problems.. Kar Help Archive 17 23/06/2010 07:18 AM
Problems with ID 13 [mad]MLK Help Archive 20 14/10/2009 10:06 AM
[help] a Few problems with 0.3 Mowgli Help Archive 3 13/10/2009 03:34 PM
[FS]CarOwnership problems, GM Problems coole210 Help Archive 8 17/06/2009 09:27 PM


All times are GMT. The time now is 04:19 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.