[AJUDA] Estranho
#1

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(stringsizeof(string), "Cabo: %s"sendername); }
    else if(
PlayerInfo[playerid][pRank] == 2) { format(stringsizeof(string), "Sub-Tenente: %s"sendername); }
    else if(
PlayerInfo[playerid][pRank] == 3) { format(stringsizeof(string), "Capitгo: %s"sendername); }
    else if(
PlayerInfo[playerid][pRank] == 4) { format(stringsizeof(string), "Coronel: %s"sendername); }
    else if(
PlayerInfo[playerid][pRank] == 5) { format(stringsizeof(string), "Sub-Comandante: %s"sendername);
    else if(
PlayerInfo[playerid][pRank] == 6) { format(stringsizeof(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(stringsizeof(string), "Estagiбrio PRF %s"sendername); }
    else if(
PlayerInfo[playerid][pRank] == 2) { format(stringsizeof(string), "Agente N1 PRF: %s"sendername); }
    else if(
PlayerInfo[playerid][pRank] == 3) { format(stringsizeof(string), "Agente N2 PRF: %s"sendername); }
    else if(
PlayerInfo[playerid][pRank] == 4) { format(stringsizeof(string), "NOE-PRF: %s"sendername); }
    else if(
PlayerInfo[playerid][pRank] == 5) { format(stringsizeof(string), "Sub-Delegado PRF: %s"sendername); }
    else if(
PlayerInfo[playerid][pRank] == 6) { format(stringsizeof(string), "Delegado PRF: %s"sendername); }

Reply
#2

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 }
Reply
#3

Onde ?
Reply
#4

pawn Code:
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Sub-Comandante: %s", sendername);
Sendo que Faltou Uma Chave " } " No Final =)
Reply
#5

Sabia que era um chave, sу faltava achar onde ... Valeu ae =D
Reply
#6

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);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)