Warning 219 Local Variable
#1

Line 598
pawn Код:
new PlayerName[MAX_PLAYER_NAME];
Line 801
pawn Код:
new PlayerName[MAX_PLAYER_NAME], str[128];
Line 879
pawn Код:
new pName[MAX_PLAYER_NAME];
Line 11235
pawn Код:
new PlayerName[MAX_PLAYER_NAME];
Код:
C:\Users\Grand\Desktop\Ultimate Gaming Ground\filterscripts\LuxAdmin.pwn(598) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Users\Grand\Desktop\Ultimate Gaming Ground\filterscripts\LuxAdmin.pwn(801) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Users\Grand\Desktop\Ultimate Gaming Ground\filterscripts\LuxAdmin.pwn(879) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Grand\Desktop\Ultimate Gaming Ground\filterscripts\LuxAdmin.pwn(11235) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Reply
#2

Remove all those lines.

They are already defined somewhere else.
Reply
#3

The user above is correct, what those warnings mean is that those new values or strings have been already defined above.

You could change it from a global value to a local one.
Reply
#4

I get so many errors if I remove all the lines even if I remove one I get loads of errors
Reply
#5

Show us the errors you receive when you attempt to remove the variables.
Reply
#6

I removed line 879 and got these errors
Quote:

C:\Users\Grand\Desktop\Ultimate Gaming Ground\filterscripts\LuxAdmin.pwn(59 : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Users\Grand\Desktop\Ultimate Gaming Ground\filterscripts\LuxAdmin.pwn(801) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Users\Grand\Desktop\Ultimate Gaming Ground\filterscripts\LuxAdmin.pwn(879) : error 076: syntax error in the expression, or invalid function call
C:\Users\Grand\Desktop\Ultimate Gaming Ground\filterscripts\LuxAdmin.pwn(879) : error 072: "sizeof" operator is invalid on "function" symbols
C:\Users\Grand\Desktop\Ultimate Gaming Ground\filterscripts\LuxAdmin.pwn(880) : error 076: syntax error in the expression, or invalid function call
C:\Users\Grand\Desktop\Ultimate Gaming Ground\filterscripts\LuxAdmin.pwn(11235) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

On some I RECEIVE LOADS OF ERRORS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)