i have 2 types of warnings and i dont know what they mean!
#4

Quote:
Originally Posted by Dark_Kostas
View Post
The other error i think was happening when you had a global variable and a local one with the same name.
For example at the top of the script you have "new playername" and somewhere in the middle of the script you also use again "new playername" to create a local variable.
This is NOT quite correct. The error does not only apply to global variables, but variables when re-defined within the region (scope) of the code.

pawn Code:
stock Function()
{
    new bool:variable = false;
    if(variable == false)
    {
        new variable;
    }
}
Reply


Messages In This Thread
i have 2 types of warnings and i dont know what they mean! - by Pasa - 02.01.2012, 08:49
Re: i have 2 types of warnings and i dont know what they mean! - by Dark_Kostas - 02.01.2012, 08:53
Re: i have 2 types of warnings and i dont know what they mean! - by Pasa - 02.01.2012, 09:06
Re: i have 2 types of warnings and i dont know what they mean! - by Gh05t_ - 02.01.2012, 15:40

Forum Jump:


Users browsing this thread: 1 Guest(s)