error 017: undefined symbol "BULLET_HIT_TYPE_VEHICLE"
#1

What the problem here? i got Error

Код:
error 017: undefined symbol "BULLET_HIT_TYPE_VEHICLE"
PHP код:
case BULLET_HIT_TYPE_VEHICLE:
        {
            new 
Float:fSet[9];
            new 
modelid GetVehicleModel(hitid);
            
GetVehicleModelInfo(modelidVEHICLE_MODEL_INFO_PETROLCAP,fSet[0], fSet[1], fSet[2]);
            
GetVehicleModelInfo(modelidVEHICLE_MODEL_INFO_WHEELSFRONTfSet[3], fSet[4], fSet[5]);
            
GetVehicleModelInfo(modelidVEHICLE_MODEL_INFO_WHEELSREAR,  fSet[6], fSet[7], fSet[8]);
            if(
fX >= VehicleShotInfo[modelid-400][VS_PetrolX]-0.15 && fX <= VehicleShotInfo[modelid-400][VS_PetrolX]+0.15 && fY >= VehicleShotInfo[modelid-400][VS_PetrolY]-0.15 && fY <= VehicleShotInfo[modelid-400][VS_PetrolY]+0.15 && fZ >= VehicleShotInfo[modelid-400][VS_PetrolZ]-0.15 && fZ <= VehicleShotInfo[modelid-400][VS_PetrolZ]+0.15)
            {
                if(
EnablePetrolCapExplosionVar==1)
                {
                    new 
Float:vPosx,Float:vPosy,Float:vPosz;
                    
GetVehiclePos(hitidvPosx,vPosy,vPosz);
                    
CreateExplosion(vPosx,vPosy,vPosz330.0);
                    
SetVehicleToRespawn(hitid);
                }
                
CallLocalFunction("OnPlayerShootVehiclePart""iiii"playeridweaponidhitid,BULLET_HIT_PETROL_TANK);
            } 
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot

Make a sure you already defined (BULLET_HIT_TYPE_VEHICLE) under function OnPlayerWeaponShot;
Reply
#3

I'm not defined BULLET_HIT_TYPE_VEHICLE how to i can Defined it?

Sorry im new in gamemode release.
Reply
#4

Update the include and executable files: http://files.sa-mp.com/samp037svr_R2-1.tar.gz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)