Hali
Pár napja írtam pár sort a módomba
de hibával vagyok bekerítve
A sorok:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SUBMISSION)
{
new Float:x, Float:y, Float:z;
GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
SetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z + 0.3);
}
if ((newkeys & KEY_CROUCH) && !(oldkeys & KEY_ANALOG_UP) && IsPlayerInAnyVehicle(playerid) )
{
if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new Float:vx, Float:vy, Float:vz;
GetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz);
SetVehicleVelocity(GetPlayerVehicleID(playerid) ,vx*1.5,vy*1.5 ,vz*1.5);
}
}
if (newkeys &= KEY_YES)
{
SetVehicleVelocity(GetPlayerVehicleID(playerid), 0, 0, 0);
}
if (newkeys &= KEY_FIRE)
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
}
if (newkeys &= KEY_NO)
{
new Float:angle;
GetVehicleZAngle(GetPlayerVehicleID(playerid), angle);
SetVehicleZAngle(GetPlayerVehicleID(playerid), angle);
}
return 1;
}
Szóval nincs erorr de nem mûködik csak a speedboost,carjump,és a super fék a nitro és a flip már nem mi lehet az oka?
Üdv