[AYUDA]Compile error(warning 219: local variable "lastentered" shadows a variable at a preceding level) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [AYUDA]Compile error(warning 219: local variable "lastentered" shadows a variable at a preceding level) (
/showthread.php?tid=413494)
[AYUDA]Compile error(warning 219: local variable "lastentered" shadows a variable at a preceding level) -
devilcome - 05.02.2013
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 :/
Respuesta: [AYUDA]Compile error(warning 219: local variable "lastentered" shadows a variable at a preceding level) -
Parka - 05.02.2013
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;
}
Respuesta: [AYUDA]Compile error(warning 219: local variable "lastentered" shadows a variable at a preceding level) -
devilcome - 05.02.2013
GRACIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAS