local variable "pName" shadows a variable at a preceding level
#1

local variable "pName" shadows a variable at a preceding level

I keep getting this warning, I know what is causing, however, I don't want to fix it by getting rid of it (because this causes more errors). I really just want to 'hide' the warning...

Any ideas?
Reply
#2

you defined the variable pName twice, you can try renaming the other one to pName2.

example of what you're doing wrong

pawn Code:
new pName;
new pName;

// more like to be this way to get rid of the warnings.

new pName;
new pNameTwo;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)