[Ajuda] Variбvel Inversamente Proporcional
#6

PHP код:
    static
        
Float:vidaaviao // Variбvel flutuante do aviao
    
;
    
//Armazena a vida do aviao na variбvel
    
GetVehicleHealth(vehicleidvidaaviao);
    
//Retira o dinheiro do jogador, baseado na operaзгo acima.
    
GivePlayerMoney(playerid, -(floatround(vidaaviaofloatround_round))); 
PS: floatround(vidaaviao, floatround_round) converte FLOAT para INT.



Muniзгo:
PHP код:
 GivePlayerWeapon(playerid24, ((30 Informacao[playerid]) / 1000)); 
Reply


Messages In This Thread
Variбvel Inversamente Proporcional - by Ely Manning - 17.10.2012, 18:49
Re: Variбvel Inversamente Proporcional - by jQuery - 17.10.2012, 18:55
Re: Variбvel Inversamente Proporcional - by HDTV - 17.10.2012, 18:56
Re: Variбvel Inversamente Proporcional - by Kimossab - 17.10.2012, 19:01
Re: Variбvel Inversamente Proporcional - by jQuery - 17.10.2012, 19:05
Re: Variбvel Inversamente Proporcional - by zSuYaNw - 17.10.2012, 19:07

Forum Jump:


Users browsing this thread: 4 Guest(s)