shadows a variable at a preceding level
#1

What the hell does this mean? Cuz i just got a page full of these..
Reply
#2

It means your using some variables twice in your script.
Reply
#3

This is usually the cause of global and local data types conflicting. Meaning, you have something declared most likely in a compound function, expression or statement in which the compiler doesn't know what do read it as!
Reply
#4

Example:
pawn Код:
public TestFunction()
{
    new test;
    if(Example)
    {
        new test;
        test = 1;
    }
}
Note the variable "test" to fix the error, take one of the variables out.
Reply
#5

Quote:
Originally Posted by Alureon
Посмотреть сообщение
Example:
pawn Код:
public TestFunction()
{
    new test;
    if(Example)
    {
        new test;
        test = 1;
    }
}
Note the variable "test" to fix the error, take one of the variables out.
Very good example! Hope this will help him.
Reply
#6

Quote:
Originally Posted by Alureon
Посмотреть сообщение
Example:
pawn Код:
public TestFunction()
{
    new test;
    if(Example)
    {
        new test;
        test = 1;
    }
}
Note the variable "test" to fix the error, take one of the variables out.
You really helped me with this example, thx so much!
Reply
#7

Welcome back to life topic
Reply
#8

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
Welcome back to life topic
there is no problem in that it shows that he is searching and not like other lazy people. And is also better than creating a whole new topic about same thing.
Reply
#9

Also this can be a cause of this error.
PHP код:
new hello;
public Function()
{
   new 
hello;
   
hello 1;
   return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)