24.05.2017, 12:01
Quote:
|
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... |
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 );
}
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 );


