[AJUDA] Comando /mostrarvagas
#1

Ae tava tentando criar um comando /mostrarvagas, entretanto nгo deu muito sucesso, quando eu mostro as vagas pra algum player, em vez de mostrar pra ele ta mostrando й pra mim e tambem o comando ta dando warning:

Warning:
Код:
E:\Documents and Settings\Casa PC\Meus documentos\BRA.pwn(15549) : warning 217: loose indentation
Linha do warning:

Код:
 if(strcmp(cmd, "/mostrarvagas", true) == 0)
Comando

Код:
if(strcmp(cmd, "/mostrarvagas", true) == 0)
    	{
        if(IsPlayerConnected(playerid))
	    {
	        tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_WHITE, "Use: /mostrarvagas [id]");
				return 1;
			}
			giveplayerid = ReturnUser(tmp);
		if(PlayerInfo[playerid][pAdmin] < 1)
	    {
			SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo й um admin.");
			return 1;
	    }
			if(IsPlayerConnected(giveplayerid))
			{
				if(giveplayerid != INVALID_PLAYER_ID)
				{
				    if (ProxDetectorS(8.0, playerid, giveplayerid))
					{
					    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Vocк nao pode mostrar vagas a vocк!"); return 1; }
					    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
					    SendClientMessage(playerid, COR_VERMELHO, "|__O Admin Lhe Mostrou Todas As Vagas De Lideres__|");
                        format(string, sizeof(string), "Policia Militar: %s", InfoOrg[1][Lider]);
		                SendClientMessage(playerid, COR_PM, string);
		                format(string, sizeof(string), "ROTAM: %s", InfoOrg[2][Lider]);
		         		SendClientMessage(playerid, COR_PR, string);
						format(string, sizeof(string), "Exйrcito: %s", InfoOrg[3][Lider]);
						SendClientMessage(playerid, COR_EXE, string);
						format(string, sizeof(string), "Mйdicos: %s", InfoOrg[4][Lider]);
						SendClientMessage(playerid, COR_SAMU, string);
						format(string, sizeof(string), "Aztecas: %s", InfoOrg[5][Lider]);
						SendClientMessage(playerid, COR_AZTECAS, string);
						format(string, sizeof(string), "Hamas: %s", InfoOrg[6][Lider]);
						SendClientMessage(playerid, COR_HAMAS, string);
						format(string, sizeof(string), "Prefeitura: %s", InfoOrg[7][Lider]);
						SendClientMessage(playerid, COR_PRE, string);
						format(string, sizeof(string), "Hitmans: %s", InfoOrg[8][Lider]);
						SendClientMessage(playerid, COR_HITMAN, string);
						format(string, sizeof(string), "Reporteres: %s", InfoOrg[9][Lider]);
						SendClientMessage(playerid, COR_REP, string);
						format(string, sizeof(string), "Taxistas: %s", InfoOrg[10][Lider]);
						SendClientMessage(playerid, COR_TAXI, string);
    					format(string, sizeof(string), "Policia Federal: %s", InfoOrg[11][Lider]);
						SendClientMessage(playerid, COR_PF, string);
						format(string, sizeof(string), "Mбfia Corleone: %s", InfoOrg[12][Lider]);
						SendClientMessage(playerid, COR_CORLEONE, string);
						format(string, sizeof(string), "Mбfia Yakuza: %s", InfoOrg[13][Lider]);
						SendClientMessage(playerid, COR_YAK, string);
						format(string, sizeof(string), "Groove: %s", InfoOrg[14][Lider]);
						SendClientMessage(playerid, COR_GRO, string);
    					format(string, sizeof(string), "Al'qaeda: %s", InfoOrg[15][Lider]);
						SendClientMessage(playerid, COR_AL, string);
						format(string, sizeof(string), "Policia Civil: %s", InfoOrg[16][Lider]);
						SendClientMessage(playerid, COR_PC, string);
    					format(string, sizeof(string), "Ballas: %s", InfoOrg[17][Lider]);
						SendClientMessage(playerid, COR_BALLAS, string);
    					format(string, sizeof(string), "Vagos: %s", InfoOrg[18][Lider]);
						SendClientMessage(playerid, COR_VAGOS, string);
    					format(string, sizeof(string), "Comando Vermelho: %s", InfoOrg[19][Lider]);
						SendClientMessage(playerid, COR_CV, string);
    					format(string, sizeof(string), "PCC: %s", InfoOrg[20][Lider]);
						SendClientMessage(playerid, COLOR_DBLUE, string);
    					format(string, sizeof(string), "Le Fodasticos %s", InfoOrg[21][Lider]);
						SendClientMessage(playerid, COR_FODASTICOS, string);
					}
					else
					{
					    SendClientMessage(playerid, COLOR_GREY, "   O Jogador esta longe de Vocк !");
					    return 1;
					}
				}
			}
	        else
	        {
	            SendClientMessage(playerid, COLOR_GREY, "   O Jogador estб offline !");
	            return 1;
	        }
		}
	    return 1;
 	}
Qualquer ajuda й bem vinda
Reply


Messages In This Thread
[AJUDA] Comando /mostrarvagas - by titinho557 - 13.11.2011, 15:15
Re: [AJUDA] Comando /mostrarvagas - by RebeloX - 13.11.2011, 15:53
Re: [AJUDA] Comando /mostrarvagas - by Miqueias Barros - 13.11.2011, 16:09
Re: [AJUDA] Comando /mostrarvagas - by RebeloX - 13.11.2011, 16:14
Re: [AJUDA] Comando /mostrarvagas - by titinho557 - 14.11.2011, 18:32
Re: [AJUDA] Comando /mostrarvagas - by Miqueias Barros - 14.11.2011, 22:29
Re: [AJUDA] Comando /mostrarvagas - by Pharrel - 14.11.2011, 22:36

Forum Jump:


Users browsing this thread: 1 Guest(s)