[AJUDA] Estranho -
Shadoww5 - 14.05.2011
Olha sу eu tava editando o GM do BSL para um colega meu, entгo ele pediu para eu mudar um negocio no comando /distintivo, mas estб dando erro nas linhas abaixo sendo que ela estб IDENTICA аs outras, eu somente troquei o nome dos cargos.
OBS: Quando eu compilo dб 26 erros em outros lugares, o que me levou a crer, como normalmente ocorre, que fosse alguma chave no lugar errado, mas atй agora nгo vi o problema no meu codigo.
PHP Code:
//TENHO CERTEZA QUE SГO ESSAS POIS QUANDO ANULO ELAS (COM /* e */) OS ERROS DESAPARECEM
else if(PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
{
if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Cabo: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Sub-Tenente: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Capitгo: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Coronel: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Sub-Comandante: %s", sendername);
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Comandante Geral: %s", sendername); }
}
// DAQUI PRA BAIXO ESTБ OK
else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//GN Ranks
{
if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Estagiбrio PRF %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Agente N1 PRF: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Agente N2 PRF: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "NOE-PRF: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Sub-Delegado PRF: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Delegado PRF: %s", sendername); }
}
Re: [AJUDA] Estranho -
JonathanFeitosa - 14.05.2011
pawn Code:
//TENHO CERTEZA QUE SГO ESSAS POIS QUANDO ANULO ELAS (COM /* e */) OS ERROS DESAPARECEM
else if(PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
{
if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Cabo: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Sub-Tenente: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Capitгo: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Coronel: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Sub-Comandante: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Comandante Geral: %s", sendername); }
}
// DAQUI PRA BAIXO ESTБ OK
else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//GN Ranks
{
if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Estagiбrio PRF %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Agente N1 PRF: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Agente N2 PRF: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "NOE-PRF: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Sub-Delegado PRF: %s", sendername); }
else if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Delegado PRF: %s", sendername); }
}
Faltou um }
Re: [AJUDA] Estranho -
Shadoww5 - 14.05.2011
Onde ?
Re: [AJUDA] Estranho -
JonathanFeitosa - 14.05.2011
pawn Code:
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Sub-Comandante: %s", sendername);
Sendo que Faltou Uma Chave " } " No Final =)
Re: [AJUDA] Estranho -
Shadoww5 - 14.05.2011
Sabia que era um chave, sу faltava achar onde ... Valeu ae =D
Re: [AJUDA] Estranho -
Macintosh - 14.05.2011
pawn Code:
else if(PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
{
if(PlayerInfo[playerid][pRank] == 1) return format(string, sizeof(string), "Cabo: %s", sendername);
else if(PlayerInfo[playerid][pRank] == 2) return format(string, sizeof(string), "Sub-Tenente: %s", sendername);
else if(PlayerInfo[playerid][pRank] == 3) return format(string, sizeof(string), "Capitгo: %s", sendername);
else if(PlayerInfo[playerid][pRank] == 4) return format(string, sizeof(string), "Coronel: %s", sendername);
else if(PlayerInfo[playerid][pRank] == 5) return format(string, sizeof(string), "Sub-Comandante: %s", sendername);
else if(PlayerInfo[playerid][pRank] == 6) return format(string, sizeof(string), "Comandante Geral: %s", sendername);
}
// DAQUI PRA BAIXO ESTБ OK
else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//GN Ranks
{
if(PlayerInfo[playerid][pRank] == 1) return format(string, sizeof(string), "Estagiбrio PRF %s", sendername);
else if(PlayerInfo[playerid][pRank] == 2) return format(string, sizeof(string), "Agente N1 PRF: %s", sendername);
else if(PlayerInfo[playerid][pRank] == 3) return format(string, sizeof(string), "Agente N2 PRF: %s", sendername);
else if(PlayerInfo[playerid][pRank] == 4) return format(string, sizeof(string), "NOE-PRF: %s", sendername);
else if(PlayerInfo[playerid][pRank] == 5) return format(string, sizeof(string), "Sub-Delegado PRF: %s", sendername);
else if(PlayerInfo[playerid][pRank] == 6) return format(string, sizeof(string), "Delegado PRF: %s", sendername);
}