error 017: undefined symbol "BULLET_HIT_TYPE_VEHICLE" - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 017: undefined symbol "BULLET_HIT_TYPE_VEHICLE" (
/showthread.php?tid=622394)
error 017: undefined symbol "BULLET_HIT_TYPE_VEHICLE" -
Thanks - 21.11.2016
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(modelid, VEHICLE_MODEL_INFO_PETROLCAP,fSet[0], fSet[1], fSet[2]);
GetVehicleModelInfo(modelid, VEHICLE_MODEL_INFO_WHEELSFRONT, fSet[3], fSet[4], fSet[5]);
GetVehicleModelInfo(modelid, VEHICLE_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(hitid, vPosx,vPosy,vPosz);
CreateExplosion(vPosx,vPosy,vPosz, 3, 30.0);
SetVehicleToRespawn(hitid);
}
CallLocalFunction("OnPlayerShootVehiclePart", "iiii", playerid, weaponid, hitid,BULLET_HIT_PETROL_TANK);
}
Re: error 017: undefined symbol "BULLET_HIT_TYPE_VEHICLE" - justice96 - 21.11.2016
https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot
Make a sure you already defined (BULLET_HIT_TYPE_VEHICLE) under function OnPlayerWeaponShot;
Re: error 017: undefined symbol "BULLET_HIT_TYPE_VEHICLE" -
Thanks - 21.11.2016
I'm not defined BULLET_HIT_TYPE_VEHICLE how to i can Defined it?
Sorry im new in gamemode release.
Re: error 017: undefined symbol "BULLET_HIT_TYPE_VEHICLE" -
Konstantinos - 21.11.2016
Update the include and executable files:
http://files.sa-mp.com/samp037svr_R2-1.tar.gz