[Ajuda]do /lideres !
#1

Bom pessoal as vezes e uma forga minha ficar toda hora pedindo ajuda eu queria tirar um cmd /lideres de dialog ja tentei de algumas formas quando da certo fica com alguns warnings logo abaixo mostrarei o cmd

if (strcmp(cmd,"/Lideres",true) == 0)
{
if(IsPlayerConnected(playerid))
{
new DialogThiago[1500];
//SendClientMessage(playerid,COLOR_WHITE, "|________________[ Lideres Online ]________________|");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new celular = PlayerInfo[i][pPnumber];
if(PlayerInfo[i][pLider] == 1)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {7AADFF}(Polнcia Militar){FFFFFF} Cel [%d] {7AADFF}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 2)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {ADC7D9}(B.O.P.E){FFFFFF} Cel [%d] {ADC7D9}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 3)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {6CD950}(Exercito){FFFFFF} Cel [%d] {6CD950}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 4)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {F7819A}(S.A.M.U){FFFFFF} Cel [%d] {F7819A}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {337EFF}(Los Aztecas){FFFFFF} Cel [%d] {337EFF}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 6)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {48A3E0}(Hamas){FFFFFF} Cel [%d] {48A3E0}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 7)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}=> {6AB4E6}Prefeito: %s {FFFFFF}<= Cel [%d] {6AB4E6}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] ==
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {C2CBD1}(Hitmans){FFFFFF} Cel [%d] {C2CBD1}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 9)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {EDD893}(Rede Globo){FFFFFF} Cel [%d] {EDD893}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 10)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {93EDDE}(Taxistas){FFFFFF} Cel [%d] {93EDDE}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 11)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {9191FF}(Esquadrгo De Elite){FFFFFF} Cel [%d] {BFA873}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 12)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {BF9B47}(Mбfia Cosa Nostra){FFFFFF} Cel [%d] {BF9B47}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 13)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {8136B3}(Mбfia Yakuza){FFFFFF} Cel [%d] {8136B3}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 14)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {00DB1D} (Groove){FFFFFF} Cel [%d] {00DB1D} ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 15)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {EDE187}(Al'qaeda){FFFFFF} Cel [%d] {EDE187}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 16)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {BDA34D}(Polнcia Civil){FFFFFF} Cel [%d] {BDA34D}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 17)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {CB42E3}(Ballas){FFFFFF} Cel [%d] {CB42E3}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 1
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {E1ED00}(Vagos){FFFFFF} Cel [%d] {E1ED00}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 19)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {FF0000}(Bloodz){FFFFFF} Cel:[%d] {FF0000}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 20)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {C90000}(Sons of Anarchy){FFFFFF} Cel:[%d] {C90000}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 21)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {46F274}(Drifters){FFFFFF} Cel:[%d] ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 22)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {A87A31}(Triads){FFFFFF} Cel:[%d] ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 23)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {FF0066}(F.A.R.C){FFFFFF} Cel [%d] {FF0066}ID[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
ShowPlayerDialog(playerid, 8793, DIALOG_STYLE_MSGBOX, "Lideres Online", DialogThiago, "Fechar", "");
}
}
}
return true;
}



Mesmo se nгo conseguir estб otimo porque ninguen nasce sabendo tudo


Logo mais postarei um map do Medicos
Reply
#2

Troque isso:
pawn Code:
ShowPlayerDialog(playerid, 8793, DIALOG_STYLE_MSGBOX, "Lideres Online", DialogThiago, "Fechar", "");
Por isso
pawn Code:
SendClientMessage(playerid,-1,DialogThiago);
Reply
#3

Isto deve resolver o seu problema :


pawn Code:
if (strcmp(cmd,"/Lideres",true) == 0)
    {
        //SendClientMessage(playerid,COLOR_WHITE, "|________________[ Lideres Online ]________________|");
        for(new i = 0, j = GetMaxPlayers(); i < j; i++)
        {
            if(!IsPlayerConnected(i)) continue;
            new celular = PlayerInfo[i][pPnumber];
            GetPlayerName(i,sendername,sizeof(sendername));
            if(PlayerInfo[i][pLider] == 1)
            {
                format(string,128,"{FFFFFF}Lider: %s {7AADFF}(Polнcia Militar){FFFFFF} Cel [%d] {7AADFF}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 2)
            {
                format(string,128,"{FFFFFF}Lider: %s {ADC7D9}(B.O.P.E){FFFFFF} Cel [%d] {ADC7D9}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 3)
            {
                format(string,128,"{FFFFFF}Lider: %s {6CD950}(Exercito){FFFFFF} Cel [%d] {6CD950}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 4)
            {
                format(string,128,"{FFFFFF}Lider: %s {F7819A}(S.A.M.U){FFFFFF} Cel [%d] {F7819A}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 5)
            {
                format(string,128,"{FFFFFF}Lider: %s {337EFF}(Los Aztecas){FFFFFF} Cel [%d] {337EFF}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 6)
            {
                format(string,128,"{FFFFFF}Lider: %s {48A3E0}(Hamas){FFFFFF} Cel [%d] {48A3E0}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 7)
            {
                format(string,128,"{FFFFFF}=> {6AB4E6}Prefeito: %s {FFFFFF}<= Cel [%d] {6AB4E6}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 8)
            {
                format(string,128,"{FFFFFF}Lider: %s {C2CBD1}(Hitmans){FFFFFF} Cel [%d] {C2CBD1}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 9)
            {
                format(string,128,"{FFFFFF}Lider: %s {EDD893}(Rede Globo){FFFFFF} Cel [%d] {EDD893}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 10)
            {
                format(string,128,"{FFFFFF}Lider: %s {93EDDE}(Taxistas){FFFFFF} Cel [%d] {93EDDE}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 11)
            {
                format(string,128,"{FFFFFF}Lider: %s {9191FF}(Esquadrгo De Elite){FFFFFF} Cel [%d] {BFA873}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 12)
            {
                format(string,128,"{FFFFFF}Lider: %s {BF9B47}(Mбfia Cosa Nostra){FFFFFF} Cel [%d] {BF9B47}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 13)
            {
                format(string,128,"{FFFFFF}Lider: %s {8136B3}(Mбfia Yakuza){FFFFFF} Cel [%d] {8136B3}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 14)
            {
                format(string,128,"{FFFFFF}Lider: %s {00DB1D} (Groove){FFFFFF} Cel [%d] {00DB1D} ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 15)
            {
                format(string,128,"{FFFFFF}Lider: %s {EDE187}(Al'qaeda){FFFFFF} Cel [%d] {EDE187}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 16)
            {
                format(string,128,"{FFFFFF}Lider: %s {BDA34D}(Polнcia Civil){FFFFFF} Cel [%d] {BDA34D}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 17)
            {
                format(string,128,"{FFFFFF}Lider: %s {CB42E3}(Ballas){FFFFFF} Cel [%d] {CB42E3}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 1)
            {
                format(string,128,"{FFFFFF}Lider: %s {E1ED00}(Vagos){FFFFFF} Cel [%d] {E1ED00}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 19)
            {
                format(string,128,"{FFFFFF}Lider: %s {FF0000}(Bloodz){FFFFFF} Cel:[%d] {FF0000}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 20)
            {
                format(string,128,"{FFFFFF}Lider: %s {C90000}(Sons of Anarchy){FFFFFF} Cel:[%d] {C90000}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 21)
            {
                format(string,128,"{FFFFFF}Lider: %s {46F274}(Drifters){FFFFFF} Cel:[%d] ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 22)
            {
                format(string,128,"{FFFFFF}Lider: %s {A87A31}(Triads){FFFFFF} Cel:[%d] ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 23)
            {
                format(string,128,"{FFFFFF}Lider: %s {FF0066}(F.A.R.C){FFFFFF} Cel [%d] {FF0066}ID[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
        }
        return true;
    }


Espero ter ajudado .
Reply
#4

Quote:
Originally Posted by rjjj
View Post
Isto deve resolver o seu problema :


pawn Code:
if (strcmp(cmd,"/Lideres",true) == 0)
    {
        //SendClientMessage(playerid,COLOR_WHITE, "|________________[ Lideres Online ]________________|");
        for(new i = 0, j = GetMaxPlayers(); i < j; i++)
        {
            if(!IsPlayerConnected(i)) continue;
            new celular = PlayerInfo[i][pPnumber];
            GetPlayerName(i,sendername,sizeof(sendername));
            if(PlayerInfo[i][pLider] == 1)
            {
                format(string,128,"{FFFFFF}Lider: %s {7AADFF}(Polнcia Militar){FFFFFF} Cel [%d] {7AADFF}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 2)
            {
                format(string,128,"{FFFFFF}Lider: %s {ADC7D9}(B.O.P.E){FFFFFF} Cel [%d] {ADC7D9}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 3)
            {
                format(string,128,"{FFFFFF}Lider: %s {6CD950}(Exercito){FFFFFF} Cel [%d] {6CD950}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 4)
            {
                format(string,128,"{FFFFFF}Lider: %s {F7819A}(S.A.M.U){FFFFFF} Cel [%d] {F7819A}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 5)
            {
                format(string,128,"{FFFFFF}Lider: %s {337EFF}(Los Aztecas){FFFFFF} Cel [%d] {337EFF}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 6)
            {
                format(string,128,"{FFFFFF}Lider: %s {48A3E0}(Hamas){FFFFFF} Cel [%d] {48A3E0}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 7)
            {
                format(string,128,"{FFFFFF}=> {6AB4E6}Prefeito: %s {FFFFFF}<= Cel [%d] {6AB4E6}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 8)
            {
                format(string,128,"{FFFFFF}Lider: %s {C2CBD1}(Hitmans){FFFFFF} Cel [%d] {C2CBD1}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 9)
            {
                format(string,128,"{FFFFFF}Lider: %s {EDD893}(Rede Globo){FFFFFF} Cel [%d] {EDD893}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 10)
            {
                format(string,128,"{FFFFFF}Lider: %s {93EDDE}(Taxistas){FFFFFF} Cel [%d] {93EDDE}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 11)
            {
                format(string,128,"{FFFFFF}Lider: %s {9191FF}(Esquadrгo De Elite){FFFFFF} Cel [%d] {BFA873}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 12)
            {
                format(string,128,"{FFFFFF}Lider: %s {BF9B47}(Mбfia Cosa Nostra){FFFFFF} Cel [%d] {BF9B47}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 13)
            {
                format(string,128,"{FFFFFF}Lider: %s {8136B3}(Mбfia Yakuza){FFFFFF} Cel [%d] {8136B3}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 14)
            {
                format(string,128,"{FFFFFF}Lider: %s {00DB1D} (Groove){FFFFFF} Cel [%d] {00DB1D} ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 15)
            {
                format(string,128,"{FFFFFF}Lider: %s {EDE187}(Al'qaeda){FFFFFF} Cel [%d] {EDE187}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 16)
            {
                format(string,128,"{FFFFFF}Lider: %s {BDA34D}(Polнcia Civil){FFFFFF} Cel [%d] {BDA34D}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 17)
            {
                format(string,128,"{FFFFFF}Lider: %s {CB42E3}(Ballas){FFFFFF} Cel [%d] {CB42E3}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 1)
            {
                format(string,128,"{FFFFFF}Lider: %s {E1ED00}(Vagos){FFFFFF} Cel [%d] {E1ED00}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 19)
            {
                format(string,128,"{FFFFFF}Lider: %s {FF0000}(Bloodz){FFFFFF} Cel:[%d] {FF0000}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 20)
            {
                format(string,128,"{FFFFFF}Lider: %s {C90000}(Sons of Anarchy){FFFFFF} Cel:[%d] {C90000}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 21)
            {
                format(string,128,"{FFFFFF}Lider: %s {46F274}(Drifters){FFFFFF} Cel:[%d] ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 22)
            {
                format(string,128,"{FFFFFF}Lider: %s {A87A31}(Triads){FFFFFF} Cel:[%d] ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
            else if(PlayerInfo[i][pLider] == 23)
            {
                format(string,128,"{FFFFFF}Lider: %s {FF0066}(F.A.R.C){FFFFFF} Cel [%d] {FF0066}ID[%d]\n",sendername,celular,i);
                SendClientMessage(playerid, 0xFFFFFFAA, string);
            }
        }
        return true;
    }


Espero ter ajudado .
Deu certo vlw vei
Reply
#5

entгo pessoal estб dando erro agora no /sublideres tentei so que nгo deu certo para tirar do dialog mais ok,vou postar ultima vez que pesso ajuda aqe e se pudesse o rjjj me ajudar porque ele que tiro do dialog o /lideres
Reply
#6

if (strcmp(cmd,"/sublideres",true) == 0 || strcmp(cmd,"/sub-lideres",true) == 0)
{
if(IsPlayerConnected(playerid))
{
new DialogThiago[1500];
//SendClientMessage(playerid,COLOR_WHITE, "|________________[ Sub-Lideres Online ]________________|");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new celular = PlayerInfo[i][pPnumber];
if(PlayerInfo[i][pMembro] == 1 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {7AADFF}(Polнcia Militar){FFFFFF} Cel [%d] {7AADFF}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 2 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {ADC7D9}(B.O.P.E){FFFFFF} Cel [%d] {ADC7D9}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 3 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {6CD950}(Exercito){FFFFFF} Cel [%d] {6CD950}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 4 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {F7819A}(S.A.M.U){FFFFFF} Cel [%d] {F7819A}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 5 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {337EFF}(Los Aztecas){FFFFFF} Cel [%d] {337EFF}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 6 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {48A3E0}(Hamas){FFFFFF} Cel [%d] {48A3E0}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 7 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}=> {6AB4E6}Vice-Prefeito: %s {FFFFFF}<= Cel [%d] {6AB4E6}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 8 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {C2CBD1}(Hitmans){FFFFFF} Cel [%d] {C2CBD1}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 9 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {EDD893}(Rede Globo){FFFFFF} Cel [%d] {EDD893}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 10 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {93EDDE}(Taxistas){FFFFFF} Cel [%d] {93EDDE}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 11 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {BFA873}(Policia Federal){FFFFFF} Cel [%d] {BFA873}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 12 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {BF9B47}(Mбfia Cosa Nostra){FFFFFF} Cel [%d] {BF9B47}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 13 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {8136B3}(Mбfia Yakuza){FFFFFF} Cel [%d] {8136B3}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 14 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {00DB1D}(Groove){FFFFFF} Cel [%d] {00DB1D}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 15 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {EDE187}(Al'qaeda){FFFFFF} Cel [%d] {EDE187}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 16 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {BDA34D}(Polнcia Civil){FFFFFF} Cel [%d] {BDA34D}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 17 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {CB42E3}(Ballas){FFFFFF} Cel [%d] {CB42E3}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 18 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {E1ED00}(Vagos){FFFFFF} Cel [%d] {E1ED00}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 19 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {FF0000}(Bloodz){FFFFFF} Cel:[%d] {FF0000}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 20 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {C90000}(Sons of Anarchy){FFFFFF} Cel:[%d] {C90000}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 21 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {46F274}(Drifters){FFFFFF} Cel:[%d] {46F274}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 22 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {A87A31}(Triads){FFFFFF} Cel:[%d] {A87A31}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pMembro] == 23 && PlayerInfo[i][pCargo] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Sub-Lider: %s {FF0066}(F.A.R.C){FFFFFF} Cel [%d] {FF0066}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
ShowPlayerDialog(playerid, 8796, DIALOG_STYLE_MSGBOX, "Sub-Lideres Online", DialogThiago, "Fechar", "");
}
}
}
return true;
}
Reply
#7

eu axo que isso resolve
pawn Code:
if (strcmp(cmd,"/sublideres",true) == 0 || strcmp(cmd,"/sub-lideres",true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        SendClientMessage(playerid,COLOR_WHITE, "|________________[ Sub-Lideres Online ]________________|");
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                new celular = PlayerInfo[i][pPnumber];
                if(PlayerInfo[i][pMembro] == 1 && PlayerInfo[i][pCargo] == 5)
                {
                    GetPlayerName(i,sendername,sizeof(sendername));
                    format(string,128,"{FFFFFF}Sub-Lider: %s {7AADFF}(Polнcia Militar){FFFFFF} Cel [%d] {7AADFF}ID:[%d]\n",sendername,celular,i);
                    SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 2 && PlayerInfo[i][pCargo] == 5)
                {
                    GetPlayerName(i,sendername,sizeof(sendername));
                    format(string,128,"{FFFFFF}Sub-Lider: %s {ADC7D9}(B.O.P.E){FFFFFF} Cel [%d] {ADC7D9}ID:[%d]\n",sendername,celular,i);
                    SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 3 && PlayerInfo[i][pCargo] == 5)
                {
                    GetPlayerName(i,sendername,sizeof(sendername));
                    format(string,128,"{FFFFFF}Sub-Lider: %s {6CD950}(Exercito){FFFFFF} Cel [%d] {6CD950}ID:[%d]\n",sendername,celular,i);
                    SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 4 && PlayerInfo[i][pCargo] == 5)
                {
                    GetPlayerName(i,sendername,sizeof(sendername));
                    format(string,128,"{FFFFFF}Sub-Lider: %s {F7819A}(S.A.M.U){FFFFFF} Cel [%d] {F7819A}ID:[%d]\n",sendername,celular,i);
                    SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 5 && PlayerInfo[i][pCargo] == 5)
                {
                    GetPlayerName(i,sendername,sizeof(sendername));
                    format(string,128,"{FFFFFF}Sub-Lider: %s {337EFF}(Los Aztecas){FFFFFF} Cel [%d] {337EFF}ID:[%d]\n",sendername,celular,i);
                    SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 6 && PlayerInfo[i][pCargo] == 5)
                {
                    GetPlayerName(i,sendername,sizeof(sendername));
                    format(string,128,"{FFFFFF}Sub-Lider: %s {48A3E0}(Hamas){FFFFFF} Cel [%d] {48A3E0}ID:[%d]\n",sendername,celular,i);
                    SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 7 && PlayerInfo[i][pCargo] == 5)
                {
                    GetPlayerName(i,sendername,sizeof(sendername));
                    format(string,128,"{FFFFFF}=> {6AB4E6}Vice-Prefeito: %s {FFFFFF}<= Cel [%d] {6AB4E6}ID:[%d]\n",sendername,celular,i);
                    SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 8 && PlayerInfo[i][pCargo] == 5)
                {
                    GetPlayerName(i,sendername,sizeof(sendername));
                    format(string,128,"{FFFFFF}Sub-Lider: %s {C2CBD1}(Hitmans){FFFFFF} Cel [%d] {C2CBD1}ID:[%d]\n",sendername,celular,i);
                    SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 9 && PlayerInfo[i][pCargo] == 5)
                {
                GetPlayerName(i,sendername,sizeof(sendername));
                format(string,128,"{FFFFFF}Sub-Lider: %s {EDD893}(Rede Globo){FFFFFF} Cel [%d] {EDD893}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 10 && PlayerInfo[i][pCargo] == 5)
                {
                GetPlayerName(i,sendername,sizeof(sendername));
                format(string,128,"{FFFFFF}Sub-Lider: %s {93EDDE}(Taxistas){FFFFFF} Cel [%d] {93EDDE}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 11 && PlayerInfo[i][pCargo] == 5)
                {
                GetPlayerName(i,sendername,sizeof(sendername));
                format(string,128,"{FFFFFF}Sub-Lider: %s {BFA873}(Policia Federal){FFFFFF} Cel [%d] {BFA873}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 12 && PlayerInfo[i][pCargo] == 5)
                {
                GetPlayerName(i,sendername,sizeof(sendername));
                format(string,128,"{FFFFFF}Sub-Lider: %s {BF9B47}(Mбfia Cosa Nostra){FFFFFF} Cel [%d] {BF9B47}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 13 && PlayerInfo[i][pCargo] == 5)
                {
                GetPlayerName(i,sendername,sizeof(sendername));
                format(string,128,"{FFFFFF}Sub-Lider: %s {8136B3}(Mбfia Yakuza){FFFFFF} Cel [%d] {8136B3}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 14 && PlayerInfo[i][pCargo] == 5)
                {
                GetPlayerName(i,sendername,sizeof(sendername));
                format(string,128,"{FFFFFF}Sub-Lider: %s {00DB1D}(Groove){FFFFFF} Cel [%d] {00DB1D}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 15 && PlayerInfo[i][pCargo] == 5)
                {
                GetPlayerName(i,sendername,sizeof(sendername));
                format(string,128,"{FFFFFF}Sub-Lider: %s {EDE187}(Al'qaeda){FFFFFF} Cel [%d] {EDE187}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 16 && PlayerInfo[i][pCargo] == 5)
                {
                GetPlayerName(i,sendername,sizeof(sendername));
                format(string,128,"{FFFFFF}Sub-Lider: %s {BDA34D}(Polнcia Civil){FFFFFF} Cel [%d] {BDA34D}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 17 && PlayerInfo[i][pCargo] == 5)
                {
                GetPlayerName(i,sendername,sizeof(sendername));
                format(string,128,"{FFFFFF}Sub-Lider: %s {CB42E3}(Ballas){FFFFFF} Cel [%d] {CB42E3}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 18 && PlayerInfo[i][pCargo] == 5)
                {
                GetPlayerName(i,sendername,sizeof(sendername));
                format(string,128,"{FFFFFF}Sub-Lider: %s {E1ED00}(Vagos){FFFFFF} Cel [%d] {E1ED00}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 19 && PlayerInfo[i][pCargo] == 5)
                {
                GetPlayerName(i,sendername,sizeof(sendername));
                format(string,128,"{FFFFFF}Sub-Lider: %s {FF0000}(Bloodz){FFFFFF} Cel:[%d] {FF0000}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 20 && PlayerInfo[i][pCargo] == 5)
                {
                GetPlayerName(i,sendername,sizeof(sendername));
                format(string,128,"{FFFFFF}Sub-Lider: %s {C90000}(Sons of Anarchy){FFFFFF} Cel:[%d] {C90000}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 21 && PlayerInfo[i][pCargo] == 5)
                {
                GetPlayerName(i,sendername,sizeof(sendername));
                format(string,128,"{FFFFFF}Sub-Lider: %s {46F274}(Drifters){FFFFFF} Cel:[%d] {46F274}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 22 && PlayerInfo[i][pCargo] == 5)
                {
                GetPlayerName(i,sendername,sizeof(sendername));
                format(string,128,"{FFFFFF}Sub-Lider: %s {A87A31}(Triads){FFFFFF} Cel:[%d] {A87A31}ID:[%d]\n",sendername,celular,i);
                SendClientMessage(playerid,COLOR_WHITE,string);
                }
                else if(PlayerInfo[i][pMembro] == 23 && PlayerInfo[i][pCargo] == 5)
                {
                    GetPlayerName(i,sendername,sizeof(sendername));
                    format(string,128,"{FFFFFF}Sub-Lider: %s {FF0066}(F.A.R.C){FFFFFF} Cel [%d] {FF0066}ID:[%d]\n",sendername,celular,i);
                    SendClientMessage(playerid,COLOR_WHITE,string);
                }
            }
        }
    }
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)