[Ajuda] Bug /orgs
#1

Bom ninguйm me respondeu no outro topico entгo criei um espcialmente para este bug quando dou /orgs aparece todas menos a id 21

pawn Код:
if(strcmp(cmd, "/orgs", true) == 0 || strcmp(cmd, "/organizacoes", true) == 0)
{
    static
        xCelulas [ 50 ]
    ;
    format ( xCelulas, sizeof ( xCelulas ), "1 - Policia Militar: %s", InfoOrg [ 1 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_PM, xCelulas ) ;
    format ( xCelulas, sizeof ( xCelulas ), "2 - BOPE: %s\n", InfoOrg [ 2 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_BOPE, xCelulas ) ;
    format ( xCelulas, sizeof ( xCelulas ), "3 - Exйrcito: %s", InfoOrg [ 3 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_EXE,  xCelulas ) ;
    format ( xCelulas, sizeof ( xCelulas ), "4 - Mйdicos: %s", InfoOrg [ 4 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_MEDICOS, xCelulas ) ;
    format ( xCelulas, sizeof ( xCelulas ), "5 - Los Aztecas: %s", InfoOrg [ 5 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_AZTECAS, xCelulas ) ;
    format ( xCelulas, sizeof ( xCelulas ), "6 - Hamas: %s", InfoOrg [ 6 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_HAMAS, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "7 - Prefeitura: %s", InfoOrg [ 7 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_BOPEE, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "8 - Hitmans: %s", InfoOrg [ 8 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_HITMAN, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), " 9 - Reporter: %s", InfoOrg [ 9 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_REP, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "10 - Taxista: %s", InfoOrg [ 10 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_TAXI, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "11 - Polнcia Federal: %s", InfoOrg [ 11 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_PF, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "12 - Cosa Nostra: %s", InfoOrg [ 12 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_COSANOSTRA, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "13 - Yakuza: %s", InfoOrg [ 13 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_Yakuza, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "14 - Groove Street: %s", InfoOrg [ 14 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_GRO, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "15 - Al'qaeda: %s", InfoOrg [ 15 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_AL, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "16 - Polнcia Civil: %s", InfoOrg [ 16 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_PC, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "17 - Balas: %s", InfoOrg [ 17 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_BALLAS, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "18 - Los Santos Vagos: %s", InfoOrg [ 18 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_VAGOS, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "19 - Bloods: %s", InfoOrg [ 19 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_BLOODS, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "20 - Los Tugas: %s", InfoOrg [ 20 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_TUGAS, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "21 - Sons of Anarchy: %s", InfoOrg [ 21 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_SONS, string);
    format ( xCelulas, sizeof ( xCelulas ), "22 - Mayans: %s", InfoOrg [ 22 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_MAYANS, xCelulas ) ;
    return true;
}
Reply
#2

pawn Код:
if(strcmp(cmd, "/orgs", true) == 0 || strcmp(cmd, "/organizacoes", true) == 0) {

    static
        xCelulas [ 50 ]
    ;
   
    format ( xCelulas, sizeof ( xCelulas ), "1 - Policia Militar: %s", InfoOrg [ 1 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_PM, xCelulas ) ;
    format ( xCelulas, sizeof ( xCelulas ), "2 - BOPE: %s\n", InfoOrg [ 2 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_BOPE, xCelulas ) ;
    format ( xCelulas, sizeof ( xCelulas ), "3 - Exйrcito: %s", InfoOrg [ 3 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_EXE,  xCelulas ) ;
    format ( xCelulas, sizeof ( xCelulas ), "4 - Mйdicos: %s", InfoOrg [ 4 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_MEDICOS, xCelulas ) ;
    format ( xCelulas, sizeof ( xCelulas ), "5 - Los Aztecas: %s", InfoOrg [ 5 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_AZTECAS, xCelulas ) ;
    format ( xCelulas, sizeof ( xCelulas ), "6 - Hamas: %s", InfoOrg [ 6 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_HAMAS, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "7 - Prefeitura: %s", InfoOrg [ 7 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_BOPEE, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "8 - Hitmans: %s", InfoOrg [ 8 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_HITMAN, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), " 9 - Reporter: %s", InfoOrg [ 9 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_REP, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "10 - Taxista: %s", InfoOrg [ 10 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_TAXI, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "11 - Polнcia Federal: %s", InfoOrg [ 11 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_PF, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "12 - Cosa Nostra: %s", InfoOrg [ 12 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_COSANOSTRA, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "13 - Yakuza: %s", InfoOrg [ 13 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_Yakuza, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "14 - Groove Street: %s", InfoOrg [ 14 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_GRO, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "15 - Al'qaeda: %s", InfoOrg [ 15 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_AL, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "16 - Polнcia Civil: %s", InfoOrg [ 16 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_PC, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "17 - Balas: %s", InfoOrg [ 17 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_BALLAS, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "18 - Los Santos Vagos: %s", InfoOrg [ 18 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_VAGOS, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "19 - Bloods: %s", InfoOrg [ 19 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_BLOODS, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "20 - Los Tugas: %s", InfoOrg [ 20 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_TUGAS, xCelulas );
    format ( xCelulas, sizeof ( xCelulas ), "21 - Sons of Anarchy: %s", InfoOrg [ 21 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_SONS, xCelulas);
    format ( xCelulas, sizeof ( xCelulas ), "22 - Mayans: %s", InfoOrg [ 22 ] [ Lider ] ) ;
    SendClientMessage ( playerid, COLOR_MAYANS, xCelulas ) ;
    return true;
}
Nгo tem necessidade de criar outro tуpico, vocк estava sendo auxiliado no outro!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)