Jump to content
  • 0

Bug job



Salut, la gm bhood editat de hpq123, daca muncesc la jobul farmer de exemplu si ma dau jos din tractor, il distruge si imi afiseaza un mesaj. Daca incerc sa dau iar /work, imi distruge tractorul instant, nici macar nu ma mai lasa sa ma urc in el. Aici e partea cu problema.

if(JobWorking[playerid] == 1 && gLastCar[playerid] == JobVehicle[playerid]) {
        if(PlayerInfo[playerid][pJob] == 1) {
            SCM(playerid, COLOR_GREY, "Job esuat! Ai parasit vehiculul.aaaa");
            if(playerObject[playerid] != 0) DestroyPlayerObject(playerid, playerObject[playerid]), playerObject[playerid] = 0;
            if(playerObject2[playerid] != 0) DestroyObject(playerObject2[playerid]), playerObject2[playerid] = 0;
            JobWorking[playerid] = 0;
            PlayerTextDrawHide(playerid, JobTD);
            if(JobVehicle[playerid] != 0) { DestroyVehicle(JobVehicle[playerid]); JobVehicle[playerid] = 0; }
            if(Trailer[playerid] != 0) { DestroyVehicle(Trailer[playerid]); Trailer[playerid] = 0;  }
            PlayerTextDrawHide(playerid, InfosTD);
            CP[playerid] = 0;
            JobVehicle[playerid] = 0;
            RemovePlayerAttachedObject(playerid, 2);
            RemovePlayerAttachedObject(playerid, 6);
            JobDeelay[playerid][PlayerInfo[playerid][pJob]] = 180;    
        else JobLeftTime[playerid] = 120;    

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.