21.04.2012, 22:46
Eu queria saber se ah algum bug nesses comandos
Porque quando eu chamo meu amigo pra testar comigo fica meio bugado, faz um tempinho que nгo mexo com isso atй esqueci o bug, mais fica bugado
pawn Код:
CMD:lideres(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COR_DARK, "::_________| LIDERES ONLINE |_________::");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Player[i][Membro] == 1)
{
if(Player[i][Cargo] == 6)
{
GetPlayerName(i, nome, sizeof(nome));
format(stringes, 256, "Policia Militar: %s FONE: 4242", nome);
SendClientMessage(playerid, PM_COR, stringes);
}
}
else
if(Player[i][Membro] == 2)
{
if(Player[i][Cargo] == 6)
{
GetPlayerName(i, nome, sizeof(nome));
format(stringes, 256, "Drifters: %s FONE: 4242", nome);
SendClientMessage(playerid, DRIFTERS_COR, stringes);
}
}
}
}
}
return 1;
}
pawn Код:
CMD:membros(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COR_DARK, "::_____| MEMBROS ONLINE |_____:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Player[i][Membro] == 0)
{
SendClientMessage(playerid, COR_AMARELO, "Vocк nгo faz parte de uma Organizaзгo.");
}
else
if(Player[i][Membro] == 1)
{
if(Player[i][Cargo] == 1) { GetPlayerName(i, nome, sizeof(nome)); format(stringes, 256, "|1| Soldado %s (%d)", nome, playerid); SendClientMessage(playerid, COR_AMARELO, stringes); }
else if(Player[i][Cargo] == 2) { GetPlayerName(i, nome, sizeof(nome)); format(stringes, 256, "|2| Cabo %s (%d)", nome, playerid); SendClientMessage(playerid, COR_AMARELO, stringes); }
else if(Player[i][Cargo] == 3) { GetPlayerName(i, nome, sizeof(nome)); format(stringes, 256, "|3| Sargento %s (%d)", nome, playerid); SendClientMessage(playerid, COR_AMARELO, stringes); }
else if(Player[i][Cargo] == 4) { GetPlayerName(i, nome, sizeof(nome)); format(stringes, 256, "|4| Major %s (%d)", nome, playerid); SendClientMessage(playerid, COR_AMARELO, stringes); }
else if(Player[i][Cargo] == 5) { GetPlayerName(i, nome, sizeof(nome)); format(stringes, 256, "|5| Ten. Coronel %s (%d)", nome, playerid); SendClientMessage(playerid, COR_AMARELO, stringes); }
else if(Player[i][Cargo] == 6) { GetPlayerName(i, nome, sizeof(nome)); format(stringes, 256, "|6| Coronel %s (%d)", nome, playerid); SendClientMessage(playerid, COR_AMARELO, stringes); }
}
else
if(Player[i][Membro] == 2)
{
if(Player[i][Cargo] == 1) { GetPlayerName(i, nome, sizeof(nome)); format(stringes, 256, "|1| Laranja %s (%d)", nome, playerid); SendClientMessage(playerid, COR_AMARELO, stringes);}
else if(Player[i][Cargo] == 2) { GetPlayerName(i, nome, sizeof(nome)); format(stringes, 256, "|2| Fogueteiro %s (%d)", nome, playerid); SendClientMessage(playerid, COR_AMARELO, stringes);}
else if(Player[i][Cargo] == 3) { GetPlayerName(i, nome, sizeof(nome)); format(stringes, 256, "|3| Traficante %s (%d)", nome, playerid); SendClientMessage(playerid, COR_AMARELO, stringes);}
else if(Player[i][Cargo] == 4) { GetPlayerName(i, nome, sizeof(nome)); format(stringes, 256, "|4| Rei do Trafico %s (%d)", nome, playerid); SendClientMessage(playerid, COR_AMARELO, stringes);}
else if(Player[i][Cargo] == 5) { GetPlayerName(i, nome, sizeof(nome)); format(stringes, 256, "|5| Comandante Geral %s (%d)", nome, playerid); SendClientMessage(playerid, COR_AMARELO, stringes);}
else if(Player[i][Cargo] == 6) { GetPlayerName(i, nome, sizeof(nome)); format(stringes, 256, "|6| Chefгo %s (%d)", nome, playerid); SendClientMessage(playerid, COR_AMARELO, stringes);}
}
}
}
}
return 1;
}