Quote:
Originally Posted by randyrko
Valeu ai , mas deu essas warnings ai :
pawn Код:
C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(43134) : warning 219: local variable "para1" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(43135) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(43188) : warning 219: local variable "para1" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(43190) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(43233) : warning 219: local variable "para1" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(43270) : warning 219: local variable "para1" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(43292) : error 021: symbol already defined: "nome" C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(43335) : error 021: symbol already defined: "nome" C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(43372) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(43398) : warning 219: local variable "para1" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(43399) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(43443) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(44216) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(44568) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(44747) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(45109) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(45194) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(45324) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(45399) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(45558) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(45701) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46382) : warning 219: local variable "para1" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46418) : warning 219: local variable "para1" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46452) : warning 219: local variable "para1" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46455) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46488) : warning 219: local variable "para1" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46491) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46524) : warning 219: local variable "para1" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46527) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46566) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46691) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46700) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46709) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46718) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46727) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46736) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46745) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46754) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46763) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46772) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(46791) : warning 219: local variable "nome" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(48536) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(50197) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(51339) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(52236) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(52445) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(53020) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(53310) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(53536) : warning 219: local variable "level" shadows a variable at a preceding level C:\Users\Warley\Desktop\BFL2\gamemodes\BFL2.pwn(54400) : warning 219: local variable "nome" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
E essas linhas estao em todos os que tem "level" "para1" e "nome" ai deu essas warnings e 2 errors ;s
naoseisemeentendeu
|
Esses errors com certeza jб estavam aн
:
Bem, aqui estб o cуdigo, na forma como estб abaixo, ele nгo serб envolvido no motivo dos errors que vocк citou
:
pawn Код:
if(strcmp(cmd, "/darlider", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USO: /darlider [playerid/Parte-do-Nick] [Number(1-17)]");
return 1;
}
new para1_var = 0;
new level_var = 0;
new OrgDefinition[23][28] =
{
"Policia Militar", "Policia Federal", "Forзas Armadas",
"Medicos", "Ballas", "Groove Street", "Prefeitura", "Hitmans", "Rede Globo",
"Lowriders", "San Fierro Riffa", "Los Vagos", "Asphalt Kings", "Policia Rodoviaria Federal",
"Los Aztecas", "Mafia Triads", "Mafia Yakuza", "Drifters", "Comando Vermelho",
"PCC", "Al Qaeda", "Swat", "Policia Civil"
};
para1_var = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level_var = strval(tmp);
if(level_var > 23 || level_var < 0) return SendClientMessage(playerid, COLOR_GREY, " Nъmeros entre 1 e 23");
if(PlayerInfo[playerid][pAdmin] >= 5)
{
if(IsPlayerConnected(para1_var) && (para1_var != INVALID_PLAYER_ID))
{
GetPlayerName(para1_var, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1_var][pLeader] = level_var;
format(string, sizeof(string), "%s lhe deu o direito administraзгo profissional, digite /rg.", sendername);
SendClientMessage(para1_var, COLOR_LIGHTBLUE, string);
if(level_var == 0) PlayerInfo[para1_var][pChar] = 23;
format(string, sizeof(string), "%s й o novo lнder da Organizaзгo %s.", giveplayer,OrgDefinition[(PlayerInfo[para1_var][pLeader]-1)]);
SendClientMessageToAll(COLOR_WHITE, string);
if(level_var == 1) { PlayerInfo[para1_var][pChar] = 265; gTeam[para1_var] = 2;} //Police Militar
else if(level_var == 2) { PlayerInfo[para1_var][pChar] = 286; gTeam[para1_var] = 2;}//FBI
else if(level_var == 3) { PlayerInfo[para1_var][pChar] = 287; gTeam[para1_var] = 2;} //Forзas Armadas
else if(level_var == 4) { PlayerInfo[para1_var][pChar] = 70; gTeam[para1_var] = 4;}//Medicos
else if(level_var == 5) { PlayerInfo[para1_var][pChar] = 104; gTeam[para1_var] = 7;} //Ballas
else if(level_var == 6) { PlayerInfo[para1_var][pChar] = 270; gTeam[para1_var] = 7;} //Grove
else if(level_var == 7) { PlayerInfo[para1_var][pChar] = 147; gTeam[para1_var] = 8;} //prefeito
else if(level_var == 8) { PlayerInfo[para1_var][pChar] = 165; gTeam[para1_var] = 8;} //Hitmans
else if(level_var == 9) { PlayerInfo[para1_var][pChar] = 295; gTeam[para1_var] = 9;} //Rede Globo
else if(level_var == 10) { PlayerInfo[para1_var][pChar] = 47; gTeam[para1_var] = 47;} //Lowriders
else if(level_var == 11) { PlayerInfo[para1_var][pChar] = 174; gTeam[para1_var] = 174;} //San Fierro riffa
else if(level_var == 12) { PlayerInfo[para1_var][pChar] = 108; gTeam[para1_var] = 7;} //Los Santos Vagos
else if(level_var == 13) { PlayerInfo[para1_var][pChar] = 181; gTeam[para1_var] = 7;} //Asphalt kings
else if(level_var == 14) { PlayerInfo[para1_var][pChar] = 283; gTeam[para1_var] = 14;} //PRF
else if(level_var == 15) { PlayerInfo[para1_var][pChar] = 115; gTeam[para1_var] = 7;} //Aztecas
else if(level_var == 16) { PlayerInfo[para1_var][pChar] = 118; gTeam[para1_var] = 16;} //Mafia Triads
else if(level_var == 17) { PlayerInfo[para1_var][pChar] = 294; gTeam[para1_var] = 16;} //Mafia Yakuza
else if(level_var == 18) { PlayerInfo[para1_var][pChar] = 292; gTeam[para1_var] = 16;} //Drifters
else if(level_var == 19) { PlayerInfo[para1_var][pChar] = 19; gTeam[para1_var] = 16;} //C.V
else if(level_var == 20) { PlayerInfo[para1_var][pChar] = 293; gTeam[para1_var] = 16;} //PCC
else if(level_var == 21) { PlayerInfo[para1_var][pChar] = 285; gTeam[para1_var] = 21;} //Al qaeda
else if(level_var == 22) { PlayerInfo[para1_var][pChar] = 290; gTeam[para1_var] = 22;} //swat
else if(level_var == 23) { PlayerInfo[para1_var][pChar] = 235; gTeam[para1_var] = 7;} //Policia Civil
PlayerInfo[para1_var][pMember] = level_var;
PlayerInfo[para1_var][pRank] = 6;
PlayerInfo[para1_var][pTeam] = gTeam[para1_var];
PlayerInfo[para1_var][pModel] = PlayerInfo[para1_var][pChar];
SetPlayerSkin(para1_var, PlayerInfo[para1_var][pChar]);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Sem Autorizaзгo.");
}
return true;
}
Qualquer problema, poste todas as linhas dos errors e warnings
.
Espero ter ajudado
.