14.10.2012, 15:26
Olб,
Nгo consegui identificar o erro nesse comando, ele nгo obtem todos os jogadores os jogadores procurados no Servidor, Apenas mostra meu nome ou mostra a quantidade errada de estrelas de cada jogador procurado.
Nгo consegui identificar o erro nesse comando, ele nгo obtem todos os jogadores os jogadores procurados no Servidor, Apenas mostra meu nome ou mostra a quantidade errada de estrelas de cada jogador procurado.
PHP код:
CMD:procurados(playerid)
{
if(Profissao[playerid] == 9 || Profissao[playerid] == 10 || Profissao[playerid] == 11 || Profissao[playerid] == 12 || Profissao[playerid] == 13 || Profissao[playerid] == 14 || PlayerInfo[playerid][pAdmin] == 1000 || PlayerInfo[playerid][pAdmin] == 2000 || IsPlayerInRangeOfPoint(playerid, 2.0, 249.1528, 67.8353, 1003.6406))
{
SendClientMessage(playerid, 0x1E90FFAA, "• Lista de Procurados •");
static bool: result;
for(new i; i < MAX_PLAYERS; ++i)
{
new string[200],pname[MAX_PLAYER_NAME];
GetPlayerName(i, pname, 24);
if(IsPlayerConnected(i))
{
if(GetPlayerWantedLevel(i) == 1)
{
format(string,sizeof(string),"%s [ %d ] - {FFFFFF}1 Estrela", pname, i);
SendClientMessage(playerid, -1, string);
result = true;
}
if(GetPlayerWantedLevel(i) == 2)
{
format(string,sizeof(string),"%s [ %d ] - {FFFFFF}2 Estrelas", pname, i);
SendClientMessage(playerid, -1, string);
result = true;
}
if(GetPlayerWantedLevel(i) == 3)
{
format(string,sizeof(string),"%s [ %d ] - {FFFF5B}3 Estrelas", pname, i);
SendClientMessage(playerid, -1, string);
result = true;
}
}
}
if(!result) return SendClientMessage(playerid, AZUL, " ~> Nenhum Jogador procurado no momento <~");
}
else
{
SendClientMessage(playerid, VERMELHO_ESCURO, "[ INFO ] {FFFFFF}Vocк nгo й um Policial");
}
return 1;
}