14.02.2015, 22:09
Only when I'm leader my command works when I'm civil this command is unknow server comand like to fix this error.
pawn Код:
if(strcmp(cmd, "/infolider", true) ==0 || strcmp(cmd, "/orgs", true) ==0)
{
if(IsPlayerConnected(playerid))
{
new orgx;
new idxe;
new PlayerNomex[MAX_PLAYER_NAME];
new InfoDataOrgx[6][10];
orgx = PlayerInfo[playerid][pLider];
idxe = GetPlayerID(InfoOrg[orgx][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
GetPlayerName(playerid, PlayerNomex, sizeof(PlayerNomex));
if(IsPlayerOnline(InfoOrg[1][Lider]))
{
idxe = GetPlayerID(InfoOrg[1][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Policia Militar Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[1][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[1][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Policia Militar 1| Lider: %s",InfoOrg[1][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[2][Lider]))
{
idxe = GetPlayerID(InfoOrg[2][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"BOPE Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[2][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[2][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"BOPE| Lider: %s",InfoOrg[2][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[3][Lider]))
{
idxe = GetPlayerID(InfoOrg[3][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Exercito| Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[3][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[3][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Exercito| Lider: %s",InfoOrg[3][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[4][Lider]))
{
idxe = GetPlayerID(InfoOrg[4][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Bombeiros Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[4][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[4][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Bombeiros Lider: %s",InfoOrg[4][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[5][Lider]))
{
idxe = GetPlayerID(InfoOrg[5][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Los Aztecas Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[5][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[5][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Los Aztecas Lider: %s",InfoOrg[5][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[6][Lider]))
{
idxe = GetPlayerID(InfoOrg[6][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Taliban Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[6][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[6][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Taliban Lider: %s",InfoOrg[6][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[7][Lider]))
{
idxe = GetPlayerID(InfoOrg[7][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Prefeitura Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[7][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[7][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Prefeitura Lider: %s",InfoOrg[7][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[8][Lider]))
{
idxe = GetPlayerID(InfoOrg[8][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Hitmans Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[8][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[8][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Hitmans Lider: %s",InfoOrg[8][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[9][Lider]))
{
idxe = GetPlayerID(InfoOrg[9][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Reportes Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[9][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[9][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Reporters Lider: %s",InfoOrg[9][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[10][Lider]))
{
idxe = GetPlayerID(InfoOrg[10][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Taxistas Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[10][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[10][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Taxistas Lider: %s",InfoOrg[10][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[11][Lider]))
{
idxe = GetPlayerID(InfoOrg[11][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Policia Federal Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[11][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[11][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Policia Federal Lider: %s",InfoOrg[11][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[12][Lider]))
{
idxe = GetPlayerID(InfoOrg[12][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"MБfia Cosa Nostra Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[12][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[12][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"MБfia Cosa Nostra Lider: %s",InfoOrg[12][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[13][Lider]))
{
idxe = GetPlayerID(InfoOrg[13][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Yakuza Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[13][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[13][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Yakuza Lider: %s",InfoOrg[13][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[14][Lider]))
{
idxe = GetPlayerID(InfoOrg[14][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Groove Street Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[14][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[14][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Groove Street Lider: %s",InfoOrg[14][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[15][Lider]))
{
idxe = GetPlayerID(InfoOrg[15][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Al'qaeda Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[15][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[15][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Al'qaeda Lider: %s",InfoOrg[15][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[16][Lider]))
{
idxe = GetPlayerID(InfoOrg[16][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Policia Civil Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[16][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[16][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Policia Civil Lider: %s",InfoOrg[16][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[17][Lider]))
{
idxe = GetPlayerID(InfoOrg[17][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Ballas Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[17][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[17][Lider],"Ballas",true)==0)
{
format(string,sizeof(string),"Vaga 15| Lider: %s",InfoOrg[17][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[18][Lider]))
{
idxe = GetPlayerID(InfoOrg[18][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Los Vagos Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[18][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[18][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Los Vagos Lider: %s",InfoOrg[18][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[19][Lider]))
{
idxe = GetPlayerID(InfoOrg[19][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Comando Vermelho Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[19][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[19][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Comando Vermelho Lider: %s",InfoOrg[19][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[20][Lider]))
{
idxe = GetPlayerID(InfoOrg[20][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Primeiro Comando da Capital Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[20][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[20][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Primeiro Comando da Capital Lider: %s",InfoOrg[20][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[21][Lider]))
{
idxe = GetPlayerID(InfoOrg[21][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Sons of anarchy Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[21][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[21][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Sons of Anarchy Lider: %s",InfoOrg[21][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[22][Lider]))
{
idxe = GetPlayerID(InfoOrg[22][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Hells Angels Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[22][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[22][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Hells Angels Lider: %s",InfoOrg[22][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[23][Lider]))
{
idxe = GetPlayerID(InfoOrg[23][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Interpol Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[23][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[23][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Interpol Lider: %s",InfoOrg[23][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
}
if(IsPlayerOnline(InfoOrg[24][Lider]))
{
idxe = GetPlayerID(InfoOrg[24][Lider]);
split(PlayerInfo[idxe][pLastLogin],InfoDataOrgx,'/');
format(string,sizeof(string),"Mecгnicos Lider: %s | Status: Online. |Ъltimo Login: dia %d/%d/%d - horбrio %d:%d:%d.",InfoOrg[24][Lider],strval(InfoDataOrgx[0]),strval(InfoDataOrgx[1]),strval(InfoDataOrgx[2]),strval(InfoDataOrgx[3]),strval(InfoDataOrgx[4]),strval(InfoDataOrgx[5]));
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
}
else
{
if(strcmp(InfoOrg[24][Lider],"Ninguem",true)==0)
{
format(string,sizeof(string),"Mecгnicos Lider: %s",InfoOrg[24][Lider]);
SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
return 1;
}
}
}
return 1;
}