[Ajuda] /orgs e /contaslider bugado
#1

Ola gostaria de pedir ajuda pois tem 3 orgs no meu gm que esta bugada!

tipo no /orgs a org 23, 24 e 25 ela nao mostra quem й lider.
ela sу mostra se eu der /limparlider e o numero da org. dai se eu der /gmx ela some dinovo!

OBS:

comando /orgs
PHP код:
    if (strcmp("/orgs"cmdtexttrue10) == || strcmp("/organizacoes"cmdtexttrue10) == && PlayerInfo[playerid][pAdmin] >= 1)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
admtrampando[playerid] < && PlayerInfo[playerid][pAdmin] != 1342 && PlayerInfo[playerid][pAdmin] != 1340)
            {
                
SendClientMessage(playerid0xB4B5B7FF"Vocк nгo й um Admin, ou nгo estб em modo (/trabalhar)");
                return 
1;
            }
            new 
DialogNGL[1600];
            
format(string,sizeof(string), "{FFFFFF} 1 - {9999FF}Policia Militar:{FF9000} %s\n"InfoOrg[1][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 2 - {3155C6}B.O.P.E:{FF9000} %s\n"InfoOrg[2][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 3 - {31AA31}Exercito:{FF9000} %s\n"InfoOrg[3][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 4 - {AD3031}Mйdicos:{FF9000} %s\n"InfoOrg[4][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 5 - {3333FF}Aztecas:{FF9000} %s\n"InfoOrg[5][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 6 - {FF0066}Taliban:{FF9000} %s\n"InfoOrg[6][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 7 - {0099FF}Presidente: {FF9000}%s\n"InfoOrg[7][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 8 - {A9A9A9}Hitmans:{FF9000} %s\n"InfoOrg[8][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 9 - {FFC1C1}Reporteres:{FF9000} %s\n"InfoOrg[9][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 10 - {F68E00}Taxistas:{FF9000} %s\n"InfoOrg[10][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 11 - {363636}Policia Federal:{FF9000} %s\n"InfoOrg[11][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 12 - {00E7C6}Mafia Cosa Nostra:{FF9000} %s\n"InfoOrg[12][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 13 - {00659C}Mafia Yakuza:{FF9000} %s\n"InfoOrg[13][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 14 - {33FF00}Groove Street:{FF9000} %s\n"InfoOrg[14][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 15 - {FFCC99}Al'Qaeda:{FF9000} %s\n"InfoOrg[15][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 16 - {93833E}Polнcia Civil: {FF9000}%s\n"InfoOrg[16][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 17 - {6B00D8}Ballas: {FF9000}%s\n"InfoOrg[17][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 18 - {FFFF33}Los Vagos:{FF9000} %s\n"InfoOrg[18][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 19 - {E10000}Comando Vermelho:{FF9000} %s\n"InfoOrg[19][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 20 - {8CBE8C}PCC: {FF9000}%s\n"InfoOrg[20][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 21 - {660000}Sons Of Anarchy:{FF9000} %s\n"InfoOrg[21][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 22 - {A774E2}Mayans:{FF9000} %s\n"InfoOrg[22][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 23 - {FF6142}Interpol:{FF9000} %s\n"InfoOrg[23][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 24 - {CCCCFF}Mecanico:{FF9000} %s\n"InfoOrg[24][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 25 - {00660C}GATE:{FF9000} %s\n"InfoOrg[25][Lider]);
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 26 - {FF8000}D.E.T.R.A.N:{FF9000} Desativada\n");
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 27 - {008040}P.Rodoviaria Federal:{FF9000} Desativada\n");
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 28 - {878787}Guarda Municipal:{FF9000} Desativada\n");
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 29 - {A7A5C7}Mafia Russa:{FF9000} Desativada\n");
            
strcat(DialogNGL,string);
            
format(string,sizeof(string), "{FFFFFF} 30 - {FF8040}Mafia Inglesa:{FF9000} Desativada\n\n");
            
strcat(DialogNGL,string);
            
ShowPlayerDialog(playerid8723DIALOG_STYLE_MSGBOX"{00ECEC}Lнderes das Organizaзхes"DialogNGL"Fechar""");
        }
        return 
true;
       } 
e comando /limparlider
PHP код:
       if (strcmp("/limparlider"cmdtexttrue10) == 0)
    {
        if(
PlayerInfo[playerid][pAdmin] < 1337)
        {
            
SendClientMessage(playeridCOLOR_GRAD2"Somente admins master ou dono podem usar este comando!");
            return 
1;
        }
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp))
        {
            
SendClientMessage(playeridCOLOR_GRAD2"USE: /limparlider [organizaзгo]");
            return 
1;
        }
        new 
Vaga2 strval(tmp);
        if(
Vaga2 || Vaga2 25) { SendClientMessage(playeridCOLOR_GREY"Vaga mнnima 1 mбximo 25!"); return 1; }
        new 
id=GetPlayerID(InfoOrg[Vaga2][Lider]);
        
format(stringsizeof(string), "ADMIN: %s limpou a vaga %d do lнder %s",PlayerName(playerid), Vaga2InfoOrg[Vaga2][Lider]);
        
LideresLog(string);
        if(
IsPlayerOnline(InfoOrg[Vaga2][Lider])) DemitirLider(id);
        
strmid(InfoOrg[Vaga2][Lider], "Ninguem"0strlen("Ninguem"), 255);
        
format(gstring128"ORG Arquivos/Org%d.cfg"Vaga2);
           
dini_Set(gstring,"Lider","Ninguem");
        
format(stringsizeof(string), "Vocк limpou o lнder da organizaзгo Nє %d",Vaga2);
        
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
        return 
1;
    } 
se poderem ajudar agradeзo deis de jб
Reply


Messages In This Thread
/orgs e /contaslider bugado - by igor97m - 06.07.2014, 03:20
Respuesta: /orgs e /contaslider bugado - by igor97m - 06.07.2014, 03:29

Forum Jump:


Users browsing this thread: 1 Guest(s)