Undefined symbol "GetVehicleModelMass"
#4

Quote:
Originally Posted by Yaa
Посмотреть сообщение
1 - Download this include https://sampforum.blast.hk/showthread.php?tid=438678
2 - add #include <evi> in u includes
3 - recomplie it
4 - Done
- No work .
C:\Users\ICAFE8\Desktop\tess.pwn(14) : error 017: undefined symbol "GetVehicleModelMass"
C:\Users\ICAFE8\Desktop\tess.pwn(25) : error 017: undefined symbol "GetVehicleModelMass"
PHP код:
#include <a_samp>
#include <evi>
        
new AmountOfShakes[ MAX_PLAYERS ];
        
forward SetPlayerEarthquakeEffect       ( playerid, amount_of_shakes );
        
forward EarthquakeEffects                       ( playerid, interval, bool:status );
public 
SetPlayerEarthquakeEffect( playerid, amount_of_shakes ){
        if( 
amount_of_shakes < AmountOfShakes[ playerid ] )
                return 
0;
        
AmountOfShakes[ playerid ] = amount_of_shakes;
        new 
vehicleid = GetPlayerVehicleID( playerid );
        if( 
vehicleid ){
                if( 
GetVehicleModelMass( vehicleid, true ) >= 2400.0 || amount_of_shakes <= SMALL_QUAKE+200 ){
                        
SetVehicleAngularVelocity( vehicleid, 0.09, 0.033, 0.05 );
                } else 
SetVehicleAngularVelocity( vehicleid, 0.03, 0.03, 0.03 );
        }
        return 
EarthquakeEffects( playerid, 10, false );
}
public 
EarthquakeEffects( playerid, interval, bool:status ){
        if( 
AmountOfShakes[ playerid ] <= 0 )
                return 
SetPlayerDrunkLevel( playerid, 0 );
        if( !(
AmountOfShakes[ playerid ]%5) ){
                new 
vehicleid = GetPlayerVehicleID( playerid );
                if( 
GetVehicleModelMass( vehicleid, true ) >= 2400.0 || AmountOfShakes[ playerid ] <= SMALL_QUAKE+200 ){
                        
SetVehicleAngularVelocity( vehicleid, 0.03, 0.03, 0.03 );
                } else 
SetVehicleAngularVelocity( vehicleid, 0.015, 0.015, 0.015 );
        }
        if( 
status ){
            
SetPlayerDrunkLevel( playerid, 3000 );
        } else 
SetPlayerDrunkLevel( playerid, 50000 );
        
AmountOfShakes[ playerid ]--;
        return 
SetTimerEx( "EarthquakeEffects", interval, false, "iii", playerid, interval, !status );
} 
Reply


Messages In This Thread
Undefined symbol "GetVehicleModelMass" - by quochuy - 30.09.2016, 17:24
Re: Undefined symbol "GetVehicleModelMass" - by Yaa - 30.09.2016, 17:28
Re: Undefined symbol "GetVehicleModelMass" - by CannonBolt - 30.09.2016, 17:32
Re: Undefined symbol "GetVehicleModelMass" - by quochuy - 30.09.2016, 17:44
Re: Undefined symbol "GetVehicleModelMass" - by quochuy - 30.09.2016, 17:46
Re: Undefined symbol "GetVehicleModelMass" - by Yaa - 30.09.2016, 17:54
Re: Undefined symbol "GetVehicleModelMass" - by quochuy - 30.09.2016, 18:02
Re: Undefined symbol "GetVehicleModelMass" - by Yaa - 30.09.2016, 18:08
Re: Undefined symbol "GetVehicleModelMass" - by quochuy - 30.09.2016, 18:10
Re: Undefined symbol "GetVehicleModelMass" - by SickAttack - 30.09.2016, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)