SA-MP Forums Archive
[Solved] Shadows variable at preceding level? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Solved] Shadows variable at preceding level? (/showthread.php?tid=118926)



[Solved] Shadows variable at preceding level? - bajskorv123 - 05.01.2010

Yo, I've recently made a fs and when i try to compile i get these errors, Can anyone explain to me whats wrong?

Код:
C:\Users\Administrator\Desktop\Server\filterscripts\idunno.pwn(261) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Server\filterscripts\idunno.pwn(284) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Server\filterscripts\idunno.pwn(301) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Server\filterscripts\idunno.pwn(323) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Server\filterscripts\idunno.pwn(346) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\Server\filterscripts\idunno.pwn(368) : warning 219: local variable "pName" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase



Re: [Help] Shadows variable at preceding level? - LarzI - 05.01.2010

You have defined the variable pName twice (or more).
Once global, and one or more times local .


Re: [Help] Shadows variable at preceding level? - bajskorv123 - 06.01.2010

Thanks a lot You get a cookie