error 025: function heading differs from prototype
#1

PHP код:
public OnVehicleHealthChange(vehicleidFloat:vehicle_newhealthFloat:vehicle_oldhealth)
{
  new
      
myArray[92];
  if(
vehicle_newhealth vehicle_oldhealth)
  {
    foreach(
Playeru)
    {
      if(
IsPlayerInVehicle(uvehicleid) && GetPlayerState(u) == PLAYER_STATE_DRIVER)
      {
        if(
vehicle_newhealth 550 && vehicle_newhealth 649)
        {
            
format(myArraysizeof(myArray), "damage @ vehicleID:%i, newhealth:%.3f, oldhealth:%.3f, difference:%.3f, BatteryL: %d EngineL:%d"vehicleidvehicle_newhealthvehicle_oldhealth, (vehicle_oldhealth vehicle_newhealth), VehicleInfo[vehicleid][carBatteryL], VehicleInfo[vehicleid][carEngineL]);
            
SendClientMessage(u0xFFFFFFFFmyArray);
            
VehicleInfo[vehicleid][carBatteryL] -= (vehicle_health_loss/125.0);
            
VehicleInfo[vehicleid][carEngineL] -= (vehicle_health_loss/150.0);
        }
        else if(
vehicle_newhealth 390 && vehicle_newhealth 549)
        {
            
format(myArraysizeof(myArray), "damage @ vehicleID:%i, newhealth:%.3f, oldhealth:%.3f, difference:%.3f, BatteryL: %d EngineL:%d"vehicleidvehicle_newhealthvehicle_oldhealth, (vehicle_oldhealth vehicle_newhealth), VehicleInfo[vehicleid][carBatteryL], VehicleInfo[vehicleid][carEngineL]);
            
SendClientMessage(u0xFFFFFFFFmyArray);
              
VehicleInfo[vehicleid][carBatteryL] -= (vehicle_health_loss/100.0);
               
VehicleInfo[vehicleid][carEngineL] -= (vehicle_health_loss/125.0);
        }
        else if(
vehicle_newhealth 250 && vehicle_newhealth 389)
        {
            
format(myArraysizeof(myArray), "damage @ vehicleID:%i, newhealth:%.3f, oldhealth:%.3f, difference:%.3f, BatteryL: %d EngineL:%d"vehicleidvehicle_newhealthvehicle_oldhealth, (vehicle_oldhealth vehicle_newhealth), VehicleInfo[vehicleid][carBatteryL], VehicleInfo[vehicleid][carEngineL]);
            
SendClientMessage(u0xFFFFFFFFmyArray);
            
VehicleInfo[vehicleid][carBatteryL] -= (vehicle_health_loss/75.0);
            
VehicleInfo[vehicleid][carEngineL] -= (vehicle_health_loss/100.0);
            
VehicleInfo[vehicleid][carBroken] = 1;
        }
        break;
      }
    }
  }
  return 
true;

Reply


Messages In This Thread
error 025: function heading differs from prototype - by Mavis100 - 15.05.2014, 13:48
Re: error 025: function heading differs from prototype - by Konstantinos - 15.05.2014, 13:52
Re: error 025: function heading differs from prototype - by Mavis100 - 15.05.2014, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)