Annoying warning.
#1

Im getting this warning over and over again can someone please explain to me why it does this so i know how to fix it in the future and how to fix it?

Код:
warning 219: local variable "string" shadows a variable at a preceding level
Reply
#2

It means that you have declared a variable named 'string' within the same scope as another variable with that name. Kinda hard to explain.

pawn Код:
new string[128];

new string[128];
That would generate that warning.
Reply
#3

So how would i fix that?
Reply
#4

Delete the second one
Reply
#5

mmmkayy looks ike i got to delete 51 of em then :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)