[Ajuda] Comando
#1

Eu fiz este comando porйm sу me exibe a print abaixo, onde falta a restante informaзгo. Agradeзo desde jб pela ajuda.



https://imgur.com/sHzUJVb

Код:
CMD:empresainfo(playerid,params[])
{
	new string[1500];
	for(new c = 0; c < MAX_PROPIEDADES; c++)
	{
 		if(IsPlayerInRangeOfPoint(playerid,2.5,PropInfo[c][pPosX],PropInfo[c][pPosY],PropInfo[c][pPosZ]))
		{
			format(string, 1500, "{FF0000}Empresa {FFFFFF}ID - %d {FFFFFF}", PropInfo[c][pID]);
			format(string, 1500, "\n{FF0000}Propietбrio(a) - {FFFFFF}%s {FFFFFF}", PropInfo[c][pPropietario]);

		if(strcmp(PropInfo[c][pFunc], "Ninguem", false))
   		{
		        format(string, 1500, "\n{009EFF}Funcionбrio(a) 1 - {FFFFFF}Ninguйm");
	        }
	        else
		{
  			format(string, 1500, "\n{009EFF}Funcionбrio(a) 1 - {FFFFFF}%s", PropInfo[c][pFunc]);
        	}
		if(strcmp(PropInfo[c][pFunc1], "Ninguem", false))
		{
		        format(string, 1500, "\n{009EFF}Funcionбrio(a) 2 - {FFFFFF}Ninguйm");
		}
   		else
   		{
     			format(string, 1500, "\n{009EFF}Funcionбrio(a) 2 - {FFFFFF}%s", PropInfo[c][pFunc1]);
      		}
        	if(strcmp(PropInfo[c][pFunc2], "Ninguem", false))
        	{
	        	format(string, 1500, "\n{009EFF}Funcionбrio(a) 3 -{FFFFFF}Ninguйm");
	        }
	        else
	        {
        		format(string, 1500, "\n{009EFF}Funcionбrio(a) 3 - {FFFFFF}%s", PropInfo[c][pFunc2]);
	        }
        	if(strcmp(PropInfo[c][pFunc3], "Ninguem", false))
                {
			format(string, 1500, "\n{009EFF}Funcionбrio(a) 4 -{FFFFFF}Ninguйm");
	        }
	        else
	        {
        		format(string, 1500, "\n{009EFF}Funcionбrio(a) 4 - {FFFFFF}%s", PropInfo[c][pFunc3]);
	        }
		ShowPlayerDialog(playerid, EMPINFO, DIALOG_STYLE_MSGBOX, "{FFFFFF}Informaзхes da empresa", string, "OK", "");
		break;
        }
    }
    return 1;
}
Reply


Messages In This Thread
Comando - by JoelNyiTz - 07.09.2018, 15:03
Re: Comando - by ipsLuan - 07.09.2018, 15:06
Re: Comando - by JoelNyiTz - 07.09.2018, 15:55
Re: Comando - by ipsLuan - 07.09.2018, 16:13
Re: Comando - by JoelNyiTz - 07.09.2018, 16:59

Forum Jump:


Users browsing this thread: 1 Guest(s)