Vehicle-related Question
#9

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Ah well, if you give up that easily, then obviously you're not interested in learning how to go further.

You've got playerstates, and other checks in that function... It wouldn't be that hard to remove those, and isolate the issue.

If the error came back exactly the same when you used the example code, then chances are the error could be in another section of that function.



Hence why I said why do you have all that crud in there...
Decided to continue, found out that these were causing the debug errors

PHP код:
new i = GetPlayerVehicleID(playerid);
    if( 
GetVehicleMass( i ) >= 2400.0 )
    {
        
SetVehicleAngularVelocity( i, 0.05, 0.3, 0.08 );
    }
    else
    {
        
SetVehicleAngularVelocity( i, 0.015, 0.15, 0.15 );
    } 
And


PHP код:
new vid = GetPlayerVehicleID(playerid);
    if( 
GetVehicleMass( vid ) >= 2400.0 ){
            
SetVehicleAngularVelocity( vid, 0.03, 0.03, 0.03 );
    } else 
SetVehicleAngularVelocity( vid, 0.015, 0.015, 0.015 ); 
EDIT: Found the fix. All engines are automatically off. Velocity won't change if the engines are off.
Reply


Messages In This Thread
Vehicle-related Question - by NealPeteros - 24.05.2017, 08:03
Re: Vehicle-related Question - by Sew_Sumi - 24.05.2017, 08:18
Re: Vehicle-related Question - by NealPeteros - 24.05.2017, 08:38
Re: Vehicle-related Question - by NealPeteros - 24.05.2017, 09:05
Re: Vehicle-related Question - by Sew_Sumi - 24.05.2017, 09:54
Re: Vehicle-related Question - by NealPeteros - 24.05.2017, 10:18
Re: Vehicle-related Question - by NealPeteros - 24.05.2017, 10:30
Re: Vehicle-related Question - by Sew_Sumi - 24.05.2017, 10:43
Re: Vehicle-related Question - by NealPeteros - 24.05.2017, 12:01
Re: Vehicle-related Question - by Sew_Sumi - 24.05.2017, 16:02

Forum Jump:


Users browsing this thread: 1 Guest(s)