Jump to content
  • 0

Comanda /handbrake


Mark S.

Question

Problema intalnita (descriere): Buna ziua, Comanda handbrake are un bug: cand scrii /handbrake iti ia fancyangle si daca o misti seteaza fancyangle asa "este" doar ca in loc sa faca fancyangle al meu il face 0.
Ero(area / rile) / warning-(ul / urile): 0
Liniile de cod / sursa / script-ul:

if(!engineOn[GetPlayerVehicleID(playerid)])
                {
                             new coche = GetPlayerVehicleID(playerid);
                            new nombre[MAX_PLAYER_NAME], string_freno[128], partes[7];
                            GetPlayerName(playerid, nombre, sizeof(nombre));
                            if(FrenodeMano[coche] == 1)
                            {
                                    FrenodeMano[coche] = 0;
                                    if(idioma == 0) format(string_freno, sizeof(string_freno), "* %s took the hand brake the vehicle.", nombre);
                                    if(idioma == 1) format(string_freno, sizeof(string_freno), "* %s took the hand brake the vehicle.", nombre);
                                    ProxDetector(30.0, playerid, string_freno, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GetVehicleParamsEx(coche, partes[0], partes[1], partes[2], partes[3], partes[4], partes[5], partes[6]);
                                    SetVehicleParamsEx(coche,VEHICLE_PARAMS_OFF, partes[1], partes[2], partes[3], partes[4], partes[5], partes[6]);
                                    return 1;
                            }
                            if(FrenodeMano[coche] == 0)
                            {
                                    FrenodeMano[coche] = 1;
                                    GetVehiclePos(coche, VehFrenoPOS[coche][0], VehFrenoPOS[coche][1], VehFrenoPOS[coche][2]);
                                    GetVehicleZAngle(coche, VehFrenoPOS[coche][3]);
                                    SetVehicleVelocity(coche, 0, 0, 0);
                                    if(idioma == 0) format(string_freno, sizeof(string_freno), "* %s put the hand brake the vehicle.", nombre);
                                    if(idioma == 1) format(string_freno, sizeof(string_freno), "* %s put the hand brake the vehicle.", nombre);
                                    ProxDetector(30.0, playerid, string_freno, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                                    GetVehicleParamsEx(coche, partes[0], partes[1], partes[2], partes[3], partes[4], partes[5], partes[6]);
                                    SetVehicleParamsEx(coche,VEHICLE_PARAMS_OFF, partes[1], partes[2], partes[3], partes[4], partes[5], partes[6]);
                                    return 1;
                            }
                   }
                   else
                       {
                        GameTextForPlayer(playerid, "Opreste motorul!", 1000, 1);

                    }

si aici

 public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat)
    {
            if(FrenodeMano[vehicleid] == 1)
            {
                    GetVehiclePos(playerid, VehComprobar[vehicleid][0], VehComprobar[vehicleid][1], VehComprobar[vehicleid][2]);
                    GetVehicleZAngle(playerid, VehComprobar[playerid][3]);
                    if(VehComprobar[vehicleid][0] == VehFrenoPOS[vehicleid][0] || VehComprobar[vehicleid][1] == VehFrenoPOS[vehicleid][1] || VehComprobar[vehicleid][2] == VehFrenoPOS[vehicleid][2]|| VehComprobar[vehicleid][3] == VehFrenoPOS[vehicleid][3]) return 1;
                    SetVehiclePos(vehicleid, VehFrenoPOS[vehicleid][0], VehFrenoPOS[vehicleid][1], VehFrenoPOS[vehicleid][2]);
                    SetVehicleZAngle(vehicleid, VehComprobar[playerid][3]);
            }
            return 1;
    }

Imagini / Video (optional):-
Ati incercat sa rezolvati singur?: am incercat sa pun dinou sa imi ia fanciangle si sa il seteze dar nu a mai mers deloc...

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

la /handbrake era asa

 GetVehicleZAngle(coche, VehFrenoPOS[coche][3]);

si la public era asa

 SetVehicleZAngle(vehicleid, VehComprobar[playerid][3]);

asa ca am modificat in

SetVehicleZAngle(vehicleid, VehFrenoPOS[playerid][3]);

si merge multumesc

Edited by Selby
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.