warning 219: local variable "addr" shadows a variable at a preceding level
#1

Код:
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
Reply
#2

Код:
\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.
Reply
#3

Don't clutter the global variable namespace with names like that. Use proper names.
Reply
#4

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?
Reply
#5

There is no 'code'; you just need to re-name the 'addr' variable to one that's unique. And do that in the future.
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)