local variable "Name" shadows a variable at a preceding level
#2

somewhere, outside of the scope of GetName(), there is an (older) declaration of Name[];
simply change the variables' name inside:
Код:
stock GetName(playerid)
{
    new GName[24];
    GetPlayerName(playerid, GName, sizeof(GName));
    return GName;
}
Reply


Messages In This Thread
local variable "Name" shadows a variable at a preceding level - by MiGu3X - 14.02.2013, 18:42
Re: local variable "Name" shadows a variable at a preceding level - by Babul - 14.02.2013, 18:44
Respuesta: local variable "Name" shadows a variable at a preceding level - by MiGu3X - 14.02.2013, 18:48

Forum Jump:


Users browsing this thread: 2 Guest(s)