Jump to content
  • 0

Script Problema


Mark S.

Question

Problemă întâlnită (descriere): Stie cineva unde pot pune aceste linii?
Ero(area / rile) / warning-(ul / urile): multe pentru ca nu stiu unde trebuie sa le pun le-am pus la ongamemodeinit
Liniile de cod / sursa / script-ul:

new string[128];
    if(IsPlayerInAnyVehicle(playerid))
    {
        if(GetPlayerVehicleSeat(playerid) == 0)
        {
            new vehid = GetPlayerVehicleID(playerid);
            vehicle_odometers[vehid] += GetPlayerDistanceFromPoint(playerid, old_veh_pos[vehid][0], old_veh_pos[vehid][1], old_veh_pos[vehid][2]);
            GetVehiclePos( vehid, old_veh_pos[vehid][0], old_veh_pos[vehid][1], old_veh_pos[vehid][2]);
            format(string, sizeof(string), "Odo (KM): %04.2f", vehicle_odometers[vehid]/1000.0);
            SendClientMessage(playerid, COLOR_GREY, string);
        }
    }

Imagini / Video (optional):
Aţi încercat să rezolvaţi singur?: da

 

Daca doriti postez sursa site-ului dar este de pe o alta comunitate si nu vreau sa fac reclama

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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.