SA-MP Forums Archive
[AJUDA] Estranho - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Estranho (/showthread.php?tid=255183)



[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(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); }




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