[Ajuda] /procurados em dialogo
#8

Quote:
Originally Posted by master_mc
Посмотреть сообщение
Boas galera do foruns samp, venho aqui mais uma vez pedir a voзa ajuda em relaзгo a este pequeno garande problema do /procurados em dialogo serб que alguem me ajuda a fazer o /procurados o meu cуdigo actual й este aqui

pawn Код:
if(strcmp(cmd, "/procurados", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(!IsACop(playerid))
            {
                SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo й um policial!");
                return 1;
            }
            if(OnDuty[playerid] != 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo Bateu o cartгo!");
                return 1;
            }
            new x;
            SendClientMessage(playerid, COLOR_WHITE, "|______________ Suspeitos ______________|");
            for(new i=0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(WantedPoints[i] > 0)
                    {
                        GetPlayerName(i, giveplayer, sizeof(giveplayer));
                        format(string, sizeof(string), "%s%s(%d): %d",             string,giveplayer,i,WantedPoints[i]);
                        x++;
                        if(x > 3)
                        {
                            SendClientMessage(playerid, COLOR_YELLOW, string);
                            x = 0;
                            format(string, sizeof(string), "");
                        }
                        else
                        {
                            format(string, sizeof(string), "\n%s, ", string);
                        }
                    }
                }
            }
            if(x <= 3 && x > 0)
            {
                string[strlen(string)-2] = '.';
                SendClientMessage(playerid, COLOR_YELLOW, string);
            }
        }//not connected
        return 1;
    }
Troca por esse :
if(strcmp(cmd, "/procurados", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(!IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um policial!");
return 1;
}
if(OnDuty[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo Bateu o cartгo!");
return 1;
}
new x;
ShowPlayerDialog(playerid,1, DIALOG_STYLE_LIST, "|______________ Suspeitos ______________|", string);
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(WantedPoints[i] > 0)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "%s%s(%d): %d", string,giveplayer,i,WantedPoints[i]);
x++;
if(x > 3)
{
SendClientMessage(playerid, COLOR_YELLOW, string);
x = 0;
format(string, sizeof(string), "");
}
else
{
format(string, sizeof(string), "\n%s, ", string);
}
}
}
}
if(x <= 3 && x > 0)
{
string[strlen(string)-2] = '.';
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}//not connected
return 1;
}
Reply


Messages In This Thread
[Ajuda] /procurados em dialogo - by master_mc - 17.12.2011, 18:04
Re: /procurados em dialogo - by Victor Cesaroni - 17.12.2011, 18:26
Re: /procurados em dialogo - by Victor Cesaroni - 17.12.2011, 18:28
Re: /procurados em dialogo - by master_mc - 18.12.2011, 00:35
Re: [Ajuda] /procurados em dialogo - by master_mc - 18.12.2011, 23:24
Re: [Ajuda] /procurados em dialogo - by array13 - 18.12.2011, 23:25
Re: [Ajuda] /procurados em dialogo - by master_mc - 18.12.2011, 23:26
Re: [Ajuda] /procurados em dialogo - by Rodrigo_Avanged - 19.12.2011, 22:06

Forum Jump:


Users browsing this thread: 3 Guest(s)