25.06.2013, 02:37
Indentar o code ajuda, tinha um if sem colchetes...
Veja se este code aqui funciona:
Veja se este code aqui funciona:
pawn Код:
if(!strcmp(cmdtext, "/procurados", true))
{
SendClientMessage(playerid, 0x0080FFAA, "~~~~~~~~~~~~~~~~ Procurados ~~~~~~~~~~~~~~~~");
new Jogador[25], msg[129], count = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && Procurados[i])
{
if(GetPlayerWantedLevel(i) > 0)
{
GetPlayerName(i, Jogador, 25);
format(msg, sizeof(msg), "%d: %s: Procurado Nivel %i", i, Jogador, GetPlayerWantedLevel(i));
SendClientMessage(playerid, 0xFFFFFFAA, msg);
count++;
}
}
}
if(count == 0)
{
SendClientMessage(playerid, 0xFF0000AA, "Ninguйm estб procurado no momento.");
}
return 1;
}