\gamemodes\BFL1.pwn(43002) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43003) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43004) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43005) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43006) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43007) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43008) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43009) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43010) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43011) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43012) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43013) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43014) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43015) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43016) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43017) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43018) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43019) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43020) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43021) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43022) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43023) : error 006: must be assigned to an array
\gamemodes\BFL1.pwn(43024) : error 006: must be assigned to an array
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
23 Errors.
if(level == 0) { PlayerInfo[para1][pChar] = 23; }
else if(PlayerInfo[para1][pLeader] == 1) { Org = "Policia Militar"; }
else if(PlayerInfo[para1][pLeader] == 2) { Org = "Policia Federal"; }
else if(PlayerInfo[para1][pLeader] == 3) { Org = "Forзas Armadas"; }
else if(PlayerInfo[para1][pLeader] == 4) { Org = "Medicos"; }
else if(PlayerInfo[para1][pLeader] == 5) { Org = "Ballas"; }
else if(PlayerInfo[para1][pLeader] == 6) { Org = "Groove Street"; }
else if(PlayerInfo[para1][pLeader] == 7) { Org = "Prefeitura"; }
else if(PlayerInfo[para1][pLeader] == 8) { Org = "Hitmans"; }
else if(PlayerInfo[para1][pLeader] == 9) { Org = "Rede Globo"; }
else if(PlayerInfo[para1][pLeader] == 10) { Org = "Lowriders"; }
else if(PlayerInfo[para1][pLeader] == 11) { Org = "San Fierro Riffa"; }
else if(PlayerInfo[para1][pLeader] == 12) { Org = "Los Vagos"; }
else if(PlayerInfo[para1][pLeader] == 13) { Org = "Asphalt Kings"; }
else if(PlayerInfo[para1][pLeader] == 14) { Org = "Policia Rodoviaria Federal"; }
else if(PlayerInfo[para1][pLeader] == 15) { Org = "Los Aztecas"; }
else if(PlayerInfo[para1][pLeader] == 16) { Org = "Mafia Triads"; }
else if(PlayerInfo[para1][pLeader] == 17) { Org = "Mafia Yakuza"; }
else if(PlayerInfo[para1][pLeader] == 18) { Org = "Drifters"; }
else if(PlayerInfo[para1][pLeader] == 19) { Org = "Comando Vermelho"; }
else if(PlayerInfo[para1][pLeader] == 20) { Org = "PCC"; }
else if(PlayerInfo[para1][pLeader] == 21) { Org = "Al Qaeda"; }
else if(PlayerInfo[para1][pLeader] == 22) { Org = "Swat"; }
else if(PlayerInfo[para1][pLeader] == 23) { Org = "Policia Civil"; }
new Org[30];
new Org[30];
new Org[0x3C];
if(level == 0) PlayerInfo[para1][pChar] = 23;
if(PlayerInfo[para1][pLeader] == 1) Org = "Policia Militar";
if(PlayerInfo[para1][pLeader] == 2) Org = "Policia Federal";
if(PlayerInfo[para1][pLeader] == 3) Org = "Forзas Armadas";
if(PlayerInfo[para1][pLeader] == 4) Org = "Medicos";
if(PlayerInfo[para1][pLeader] == 5) Org = "Ballas";
if(PlayerInfo[para1][pLeader] == 6) Org = "Groove Street";
if(PlayerInfo[para1][pLeader] == 7) Org = "Prefeitura";
if(PlayerInfo[para1][pLeader] == 8) Org = "Hitmans";
if(PlayerInfo[para1][pLeader] == 9) Org = "Rede Globo";
if(PlayerInfo[para1][pLeader] == 10) Org = "Lowriders";
if(PlayerInfo[para1][pLeader] == 11) Org = "San Fierro Riffa";
if(PlayerInfo[para1][pLeader] == 12) Org = "Los Vagos";
if(PlayerInfo[para1][pLeader] == 13) Org = "Asphalt Kings";
if(PlayerInfo[para1][pLeader] == 14) Org = "Policia Rodoviaria Federal";
if(PlayerInfo[para1][pLeader] == 15) Org = "Los Aztecas";
if(PlayerInfo[para1][pLeader] == 16) Org = "Mafia Triads";
if(PlayerInfo[para1][pLeader] == 17) Org = "Mafia Yakuza";
if(PlayerInfo[para1][pLeader] == 18) Org = "Drifters";
if(PlayerInfo[para1][pLeader] == 19) Org = "Comando Vermelho";
if(PlayerInfo[para1][pLeader] == 20) Org = "PCC";
if(PlayerInfo[para1][pLeader] == 21) Org = "Al Qaeda";
if(PlayerInfo[para1][pLeader] == 22) Org = "Swat";
if(PlayerInfo[para1][pLeader] == 23) Org = "Policia Civil";
if(strcmp(cmd, "/darlider", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USO: /darlider [playerid/Parte-do-Nick] [Number(1-17)]");
return 1;
}
new para1;
new level;
new Org[0x3C];
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 23 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " Nъmeros entre 1 e 23"); return 1; }
new nome[24];
GetPlayerName(playerid, nome, sizeof nome);
if(PlayerInfo[playerid][pAdmin] >= 5)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pLeader] = level;
format(string, sizeof(string), "%s lhe deu o direito administraзгo profissional, digite /rg.", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
if(level == 0) PlayerInfo[para1][pChar] = 23;
if(PlayerInfo[para1][pLeader] == 1) Org = "Policia Militar";
if(PlayerInfo[para1][pLeader] == 2) Org = "Policia Federal";
if(PlayerInfo[para1][pLeader] == 3) Org = "Forзas Armadas";
if(PlayerInfo[para1][pLeader] == 4) Org = "Medicos";
if(PlayerInfo[para1][pLeader] == 5) Org = "Ballas";
if(PlayerInfo[para1][pLeader] == 6) Org = "Groove Street";
if(PlayerInfo[para1][pLeader] == 7) Org = "Prefeitura";
if(PlayerInfo[para1][pLeader] == 8) Org = "Hitmans";
if(PlayerInfo[para1][pLeader] == 9) Org = "Rede Globo";
if(PlayerInfo[para1][pLeader] == 10) Org = "Lowriders";
if(PlayerInfo[para1][pLeader] == 11) Org = "San Fierro Riffa";
if(PlayerInfo[para1][pLeader] == 12) Org = "Los Vagos";
if(PlayerInfo[para1][pLeader] == 13) Org = "Asphalt Kings";
if(PlayerInfo[para1][pLeader] == 14) Org = "Policia Rodoviaria Federal";
if(PlayerInfo[para1][pLeader] == 15) Org = "Los Aztecas";
if(PlayerInfo[para1][pLeader] == 16) Org = "Mafia Triads";
if(PlayerInfo[para1][pLeader] == 17) Org = "Mafia Yakuza";
if(PlayerInfo[para1][pLeader] == 18) Org = "Drifters";
if(PlayerInfo[para1][pLeader] == 19) Org = "Comando Vermelho";
if(PlayerInfo[para1][pLeader] == 20) Org = "PCC";
if(PlayerInfo[para1][pLeader] == 21) Org = "Al Qaeda";
if(PlayerInfo[para1][pLeader] == 22) Org = "Swat";
if(PlayerInfo[para1][pLeader] == 23) Org = "Policia Civil";
format(string, sizeof(string), "%s й o novo lнder da Organizaзгo %s.", giveplayer,Org);
SendClientMessageToAll(COLOR_WHITE, string);
if(level == 1) { PlayerInfo[para1][pChar] = 265; gTeam[para1] = 2;} //Police Militar
else if(level == 2) { PlayerInfo[para1][pChar] = 286; gTeam[para1] = 2;}//FBI
else if(level == 3) { PlayerInfo[para1][pChar] = 287; gTeam[para1] = 2;} //Forзas Armadas
else if(level == 4) { PlayerInfo[para1][pChar] = 70; gTeam[para1] = 4;}//Medicos
else if(level == 5) { PlayerInfo[para1][pChar] = 104; gTeam[para1] = 7;} //Ballas
else if(level == 6) { PlayerInfo[para1][pChar] = 270; gTeam[para1] = 7;} //Grove
else if(level == 7) { PlayerInfo[para1][pChar] = 147; gTeam[para1] = 8;} //prefeito
else if(level == 8) { PlayerInfo[para1][pChar] = 165; gTeam[para1] = 8;} //Hitmans
else if(level == 9) { PlayerInfo[para1][pChar] = 295; gTeam[para1] = 9;} //Rede Globo
else if(level == 10) { PlayerInfo[para1][pChar] = 47; gTeam[para1] = 47;} //Lowriders
else if(level == 11) { PlayerInfo[para1][pChar] = 174; gTeam[para1] = 174;} //San Fierro riffa
else if(level == 12) { PlayerInfo[para1][pChar] = 108; gTeam[para1] = 7;} //Los Santos Vagos
else if(level == 13) { PlayerInfo[para1][pChar] = 181; gTeam[para1] = 7;} //Asphalt kings
else if(level == 14) { PlayerInfo[para1][pChar] = 283; gTeam[para1] = 14;} //PRF
else if(level == 15) { PlayerInfo[para1][pChar] = 115; gTeam[para1] = 7;} //Aztecas
else if(level == 16) { PlayerInfo[para1][pChar] = 118; gTeam[para1] = 16;} //Mafia Triads
else if(level == 17) { PlayerInfo[para1][pChar] = 294; gTeam[para1] = 16;} //Mafia Yakuza
else if(level == 18) { PlayerInfo[para1][pChar] = 292; gTeam[para1] = 16;} //Drifters
else if(level == 19) { PlayerInfo[para1][pChar] = 19; gTeam[para1] = 16;} //C.V
else if(level == 20) { PlayerInfo[para1][pChar] = 293; gTeam[para1] = 16;} //PCC
else if(level == 21) { PlayerInfo[para1][pChar] = 285; gTeam[para1] = 21;} //Al qaeda
else if(level == 22) { PlayerInfo[para1][pChar] = 290; gTeam[para1] = 22;} //swat
else if(level == 23) { PlayerInfo[para1][pChar] = 235; gTeam[para1] = 7;} //Policia Civil
PlayerInfo[para1][pMember] = level;
PlayerInfo[para1][pRank] = 6;
PlayerInfo[para1][pTeam] = gTeam[para1];
PlayerInfo[para1][pModel] = PlayerInfo[para1][pChar];
SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
}
}//not connected
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Sem Autorizaзгo.");
}
}
return 1;
}
//Na public OnPlayerCommandText:
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;
new level;
new nome[24];
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 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 23 || level < 0) return SendClientMessage(playerid, COLOR_GREY, " Nъmeros entre 1 e 23");
GetPlayerName(playerid, nome, sizeof nome);
if(PlayerInfo[playerid][pAdmin] >= 5)
{
if(IsPlayerConnected(para1) && (para1 != INVALID_PLAYER_ID))
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pLeader] = level;
format(string, sizeof(string), "%s lhe deu o direito administraзгo profissional, digite /rg.", sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
if(level == 0) PlayerInfo[para1][pChar] = 23;
format(string, sizeof(string), "%s й o novo lнder da Organizaзгo %s.", giveplayer,OrgDefinition[(PlayerInfo[para1][pLeader]-1)]);
SendClientMessageToAll(COLOR_WHITE, string);
if(level == 1) { PlayerInfo[para1][pChar] = 265; gTeam[para1] = 2;} //Police Militar
else if(level == 2) { PlayerInfo[para1][pChar] = 286; gTeam[para1] = 2;}//FBI
else if(level == 3) { PlayerInfo[para1][pChar] = 287; gTeam[para1] = 2;} //Forзas Armadas
else if(level == 4) { PlayerInfo[para1][pChar] = 70; gTeam[para1] = 4;}//Medicos
else if(level == 5) { PlayerInfo[para1][pChar] = 104; gTeam[para1] = 7;} //Ballas
else if(level == 6) { PlayerInfo[para1][pChar] = 270; gTeam[para1] = 7;} //Grove
else if(level == 7) { PlayerInfo[para1][pChar] = 147; gTeam[para1] = 8;} //prefeito
else if(level == 8) { PlayerInfo[para1][pChar] = 165; gTeam[para1] = 8;} //Hitmans
else if(level == 9) { PlayerInfo[para1][pChar] = 295; gTeam[para1] = 9;} //Rede Globo
else if(level == 10) { PlayerInfo[para1][pChar] = 47; gTeam[para1] = 47;} //Lowriders
else if(level == 11) { PlayerInfo[para1][pChar] = 174; gTeam[para1] = 174;} //San Fierro riffa
else if(level == 12) { PlayerInfo[para1][pChar] = 108; gTeam[para1] = 7;} //Los Santos Vagos
else if(level == 13) { PlayerInfo[para1][pChar] = 181; gTeam[para1] = 7;} //Asphalt kings
else if(level == 14) { PlayerInfo[para1][pChar] = 283; gTeam[para1] = 14;} //PRF
else if(level == 15) { PlayerInfo[para1][pChar] = 115; gTeam[para1] = 7;} //Aztecas
else if(level == 16) { PlayerInfo[para1][pChar] = 118; gTeam[para1] = 16;} //Mafia Triads
else if(level == 17) { PlayerInfo[para1][pChar] = 294; gTeam[para1] = 16;} //Mafia Yakuza
else if(level == 18) { PlayerInfo[para1][pChar] = 292; gTeam[para1] = 16;} //Drifters
else if(level == 19) { PlayerInfo[para1][pChar] = 19; gTeam[para1] = 16;} //C.V
else if(level == 20) { PlayerInfo[para1][pChar] = 293; gTeam[para1] = 16;} //PCC
else if(level == 21) { PlayerInfo[para1][pChar] = 285; gTeam[para1] = 21;} //Al qaeda
else if(level == 22) { PlayerInfo[para1][pChar] = 290; gTeam[para1] = 22;} //swat
else if(level == 23) { PlayerInfo[para1][pChar] = 235; gTeam[para1] = 7;} //Policia Civil
PlayerInfo[para1][pMember] = level;
PlayerInfo[para1][pRank] = 6;
PlayerInfo[para1][pTeam] = gTeam[para1];
PlayerInfo[para1][pModel] = PlayerInfo[para1][pChar];
SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Sem Autorizaзгo.");
}
return true;
}
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.
Valeu ai , mas deu essas warnings ai :
pawn Код:
naoseisemeentendeu |
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;
}