[Pedido] Emprйstimo Bancбrio
#2

Exemplo:
PHP код:

public PayCheck()
{

    for(new 
0MAX_PLAYERSi++) //loop para "correr" todos os jogadores
    
{
        if(
gPlayerInfo[i][player_empBank] == true//verifica se fez um emprestimo
        
{
            if((
dinheiro - (gPlayerInfo[i][player_empValue]/gPlayerInfo[i][player_empTime])) < )
            {
                
//caso o dinheiro seja menor que 0, ou seja, o jogador nгo tem dinheiro para pagar o emprestimo faz se algo
            
} else {
                
gPlayerInfo[i][player_paycheck] = dinheiro - (gPlayerInfo[i][player_empValue]/gPlayerInfo[i][player_empTime]); //calcula o dinheiro
                //salбrio = dinheiro_ganho - (emprestimo/duraзгo)
            
}
        }
    }

Reply


Messages In This Thread
Emprйstimo Bancбrio - by JoshNudock - 05.03.2015, 22:20
Re: Emprйstimo Bancбrio - by RebeloX - 05.03.2015, 22:37
Re: Emprйstimo Bancбrio - by ProKillerpa - 05.03.2015, 23:18

Forum Jump:


Users browsing this thread: 1 Guest(s)