[AYUDA]Compile error(warning 219: local variable "lastentered" shadows a variable at a preceding level)
#1

Resulta que estoy creando un gm y me tira el siguiente warning
Код:
warning 219: local variable "lastentered" shadows a variable at a preceding level
Linea:
Код:
stock GetLastEnteredID (lastentered[])
{
    new name[MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if (IsPlayerConnected(i ))
        {
            GetPlayerName(i, name, sizeof(name));
            if (!strcmp(lastentered, name)) return i;
        }
    }
    return INVALID_PLAYER_ID;
}
Lo peor es que no pueden entrar a mi server porque no deja loguerse :/
Reply
#2

pawn Код:
stock GetLastEnteredID ( LastID[] )
{
    new name[MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if (IsPlayerConnected(i ))
        {
            GetPlayerName(i, name, sizeof(name));
            if (!strcmp(LastID, name)) return i;
        }
    }
    return INVALID_PLAYER_ID;
}
Reply
#3

GRACIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)