warning 219: local variable "name" shadows a variable at a preceding level error 012: invalid function call, not a valid address warning 215: expression has no effect error 001: expected token: ";", but found ")" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line |
//-----------Desconectar-----------------------
public OnPlayerDisconnect(playerid, reason)
{
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
dini_IntSet("scores.ini",name(playerid),GetPlayerScore(playerid));
return 1;
}
//----------------------------------------------------------
//-----------Desconectar-----------------------
public OnPlayerDisconnect(playerid, reason)
{
dini_IntSet("scores.ini",name(playerid),GetPlayerScore(playerid));
return 1;
}
//----------------------------------------------------------
stock name(playerid) {
new name[255];
GetPlayerName(playerid, name, 255);
return name;
}
Warning 219: local variable "PlayerName" shadows a variable at a preceding level |
891:stock PlayerName(playerid) {
892:new PlayerName[255];
893:GetPlayerName(playerid, PlayerName, 255);
894:return PlayerName;
}
Originally Posted by BurrodaZero
Deu Certooooo ta Funcionando valeu
Mais Agora ta dando Quote:
Aqui pawn Код:
|
new PlayerName[255];
GetPlayerName(playerid, PlayerName, 255);
new PlayerName[MAX_PLAYER_NAME]
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
new PlayerName[MAX_PLAYER_NAME];
Originally Posted by BurrodaZero
o Certo nгo seria
pawn Код:
Mesmo Assim Colocando a Virgula Continua essa warning |
new PlayerName[MAX_PLAYER_NAME]
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
new PlayerNameez[MAX_PLAYER_NAME]
GetPlayerName(playerid, PlayerNameez, sizeof(PlayerNameez));