[Ajuda] erro
#1

pawn Код:
stock GetVehicleHealthEx(vehicleid)
{
        new Float:health;
        GetVehicleHealth(vehicleid, health);

        if (health > 900.0)
        {
        return health / 10.0; // tag mismatch
        }
        else return ( health / 10.0 )-(24); // tag mismatch
}
Reply
#2

PHP код:
FloatGetVehicleHealthEx(vehicleid
@Edit

Se for colocar no final do script coloque o cуdigo abaixo no topo:
PHP код:
forward FloatGetVehicleHealthEx(vehicleid); 
Reply
#3

Quote:
Originally Posted by MultiKill
Посмотреть сообщение
PHP код:
FloatGetVehicleHealthEx(vehicleid
@Edit

Se for colocar no final do script coloque o cуdigo abaixo no topo:
PHP код:
forward FloatGetVehicleHealthEx(vehicleid); 
como assim ?
Reply
#4

Se a linha onde a funзгo foi criada for menor que a linha onde a funзгo й usada, use o primeiro exemplo.
Se nгo for, use o segundo
Reply
#5

Quote:
Originally Posted by didimk157
Посмотреть сообщение
como assim ?
Assim
Quote:
Код:
stock Float:GetVehicleHealthEx(vehicleid)
{
	new Float:health;
	GetVehicleHealth(vehicleid, health);

	if ( health > 900.0) {
		return health / 10.0;
	}
	else return ( health / 10.0 )-(24);
}
forward Float: GetVehicleHealthEx(vehicleid);
Reply
#6

PHP код:
stock Float:GetVehicleHealthEx(vehicleid)
{
        new 
Float:health;
        
GetVehicleHealth(vehicleidhealth);
        if (
health 900.0)
        {
            return 
health 10.0
        }
        else return ( 
health 10.0 )-(24); 

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)