A stupid question. Hope someone can answer
#1

The compiler complains about variables being shadowed, what does this mean?

Sorry for my bad English
Reply
#2

That means that your code which you didn't tell us, is bad.
Reply
#3

that means that you used for example this
pawn Код:
new x;

OnPlayerConnect(playerid)
{
     new x; // this one is being shadowed and will not work properly
     x = playerid;
     return 1;
}
you can fix this by changing the name of the shadowed variable.

this question is not that stupid, i guess you are still learning
Reply
#4

Thanks. I can write some program.But...my English is bad.So I don't know some word's meaning...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)