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

pawn Код:
stock GetName(playerid)
{
    new retName[MAX_PLAYER_NAME] = "Disconnected/Nothing";
    if(IsPlayerConnected(playerid)) GetPlayerName(playerid, retName, sizeof(retName));
    return retName;
}
Reply


Messages In This Thread
local variable "Name" shadows a variable at a preceding level - by Meinstad - 02.04.2012, 12:38
Re: local variable "Name" shadows a variable at a preceding level - by antonio112 - 02.04.2012, 12:42
Re: local variable "Name" shadows a variable at a preceding level - by MP2 - 02.04.2012, 12:42

Forum Jump:


Users browsing this thread: 2 Guest(s)