warning 219: local variable "addr" shadows a variable at a 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)
+--- Thread: warning 219: local variable "addr" shadows a variable at a preceding level (
/showthread.php?tid=500253)
warning 219: local variable "addr" shadows a variable at a preceding level -
ChristianIvann09 - 12.03.2014
Код:
C:\Users\SECRET\pawno\include\YSI\y_scripting.inc(86) : warning 219: local variable "addr" shadows a variable at a preceding level
C:\Users\SECRET\pawno\include\YSI\y_scripting.inc(109) : warning 219: local variable "addr" shadows a variable at a preceding level
C:\Users\SECRET\pawno\include\YSI\y_scripting.inc(299) : warning 219: local variable "addr" shadows a variable at a preceding level
Код:
Line 86: #define TYPE_FLOODPROTECTION 7
Line 109: #define MECHANICJOB 10013
Line 299: #define FDUTYMENU2 222
Re: warning 219: local variable "addr" shadows a variable at a preceding level -
Vince - 12.03.2014
Код:
\include\YSI\y_scripting.inc
Read, please!
If you have a variable called addr in your code, rename it. You can use Search and Replace (press CTRL-H) but be sure to check the "Whole words only" checkbox.
Re: warning 219: local variable "addr" shadows a variable at a preceding level -
MP2 - 12.03.2014
Don't clutter the global variable namespace with names like that. Use proper names.
Re: warning 219: local variable "addr" shadows a variable at a preceding level -
ChristianIvann09 - 12.03.2014
Quote:
Originally Posted by MP2
Don't clutter the global variable namespace with names like that. Use proper names.
|
What do you mean sir?
can you give me a code to replace those codes?
Re: warning 219: local variable "addr" shadows a variable at a preceding level -
MP2 - 12.03.2014
There is no 'code'; you just need to re-name the 'addr' variable to one that's unique. And do that in the future.
Re: warning 219: local variable "addr" shadows a variable at a preceding level -
ChristianIvann09 - 13.03.2014
Quote:
Originally Posted by Vince
Код:
\include\YSI\y_scripting.inc
Read, please!
If you have a variable called addr in your code, rename it. You can use Search and Replace (press CTRL-H) but be sure to check the "Whole words only" checkbox.
|
text not found