[Ajuda] Sistema Salario
#4

Код:
SendClientMessage(i, COLOR_WHITE, "|_________ EXTRATO DO BANCO _________|");
				if(rent >= 0)
				{
					format(string, sizeof(string), "  Aluguel:  [-]  R$%d", rent);
					SendClientMessage(i, COLOR_GREY, string);
					GivePlayerGP(i, -rent);
				}
				if(Player[i][pMember] == 0 && Player[i][pJob] != DESEMPREGADO)
				{
				    format(string, sizeof(string), "  Salбrio:  [+]  R$%d", JOB_SAL);
					GivePlayerGP(i, JOB_SAL);
				}
				else if(Player[i][pMember] != 0)
				{ 
				  	format(string, sizeof(string), "  Salбrio:  [+]  R$%d", OrgsSalaries[Player[i][pMember]]);
     			    GivePlayerGP(i, OrgsSalaries[Player[i][pMember]]);
				}
  			 	SendClientMessage(i, COLOR_GREY, string);
  			 	Player[i][pBank] -= Tax;

                if(Player[i][pJob] == DESEMPREGADO && Player[i][pMember] == 0)
				{
				    GivePlayerGP(i, 500);
				    SendClientMessage(i, COLOR_GREY, "  Seguro Desemprego:   [+]  R$500");
                }
                if(Player[i][pMember] == TEAM_BOPE || Player[i][pMember] == TEAM_FA || Player[i][pMember] == TEAM_PM || Player[i][pMember] == TEAM_PF || Player[i][pMember] == TEAM_PREF || Player[i][pMember] == TEAM_MUNICIPAL)
				{
					GivePlayerGP(i, 900);
				    SendClientMessage(i, COLOR_GREY, "  Seguro Governo:   [+]  R$900");
                }
Ai й todo o codigo que mostra pros players o salarios deles, ai ondem tem format
Код:
else if(Player[i][pMember] != 0)
				{ 
				  	format(string, sizeof(string), "  Salбrio:  [+]  R$%d", OrgsSalaries[Player[i][pMember]]);
     			    GivePlayerGP(i, OrgsSalaries[Player[i][pMember]]);
				}
Eu quero que esse codigo ai puxe os salarios que eu defini ali pra cada membro saco ?

Sabes me informar como ou mostrar um exemplo pra mim testa ?
Reply


Messages In This Thread
Sistema Salario - by LucasHammes - 19.07.2014, 02:41
Re: Sistema Salario - by ViniBorn - 19.07.2014, 03:16
Re: Sistema Salario - by LucasHammes - 19.07.2014, 03:31
Re: Sistema Salario - by LucasHammes - 19.07.2014, 03:34
Re: Sistema Salario - by ViniBorn - 19.07.2014, 03:51
Re: Sistema Salario - by LucasHammes - 19.07.2014, 03:54
Re: Sistema Salario - by ViniBorn - 19.07.2014, 04:04
Re: Sistema Salario - by LucasHammes - 19.07.2014, 04:28
Re: Sistema Salario - by ViniBorn - 19.07.2014, 04:41
Re: Sistema Salario - by LucasHammes - 19.07.2014, 04:44

Forum Jump:


Users browsing this thread: 1 Guest(s)