[Ajuda] Argument Type Mismatch (Argument 2)
#4

PHP код:
new FloatVeh[MAX_VEHICLES];
stock Hook_SetVehicleHealth(vehicleidFloat:health) {
    
SetVehicleHealth(vehicleidhealth);
    
Veh[vehicleid] = health;
    return 
1;
}
stock Hook_RepairVehicle(vehicleid) {
    
RepairVehicle(vehicleid);
    
Veh[vehicleid] = 1000;
    return 
1;
}
#if defined _ALS_SetVehicleHealth
    #undef SetVehicleHealth
#else
    #define _ALS_SetVehicleHealth
#endif
#define SetVehicleHealth Hook_SetVehicleHealth
#if defined _ALS_RepairVehicle
    #undef RepairVehicle
#else
    #define _ALS_RepairVehicle
#endif
#define RepairVehicle Hook_RepairVehicle
public OnVehicleSpawn(vehicleid) {
    
GetVehicleHealth(vehicleidVeh[vehicleid]);
    return 
1;
}
public 
OnVehicleDamageStatusUpdate(vehicleidplayerid)  { 
    new 
Float:vida
    
GetVehicleHealth(vehicleidvida); 
    if ( 
cinto[playerid] == ) { 
        if ( ( 
Veh[vehicleid] - vida ) < 100.0 ) { 
            
Veh[vehicleid] = vida
            
GetPlayerHealth(playeridvida);  
            
SetPlayerHealth(playerid, ( vida 0.0001) );  
            
SendClientMessage(playerid,COLOR_YELLOW,"[Aviso]: Vocк bateu com seu veнculo, e por nгo estar usando o cinto, acabou se machucando.");  
        }  
        else { 
            
Veh[vehicleid] = vida
            
GetPlayerHealth(playeridvida);  
            
SetPlayerHealth(playerid, ( vida 1.0 ) );  
            
SendClientMessage(playerid,COLOR_YELLOW,"[Aviso]: Vocк bateu com seu veнculo, e por nгo estar usando o cinto, acabou se machucando.");  
        }  
    } 
    return 
1;  

Nгo testei ...
Reply


Messages In This Thread
Argument Type Mismatch (Argument 2) - by FernandoDutra - 01.01.2016, 20:20
Re: Argument Type Mismatch (Argument 2) - by Gii - 01.01.2016, 20:57
Re: Argument Type Mismatch (Argument 2) - by FernandoDutra - 01.01.2016, 21:20
Re: Argument Type Mismatch (Argument 2) - by Gii - 02.01.2016, 02:24

Forum Jump:


Users browsing this thread: 1 Guest(s)