Jump to content

[REZOLVAT] Problema farmer


speedy29
 Share

Recommended Posts

Username: speedy29
Problema întălnită: Cand dau /work imi da un mini slap si imi zice " Job esuat! ai parasit vehiculul "
Detalii despre problemă: Dau work la farmer, lucrez, duc faina etc si cand ma intorc si dau din nou work, imi zice ca am parasit vehiculul.
Ce ai încercat să faci înainte să postezi?: Am incercat eu sa umblu pe la linii da nu mi am dat seama
Cod sursă (recomandat pastebin.com) :

if(JobWorking[playerid] == 1 && gLastCar[playerid] == JobVehicle[playerid]) {
		if(PlayerInfo[playerid][pJob] == 1) {
			SCM(playerid, COLOR_GREY, "Job esuat! Ai parasit vehiculul.");
			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);
			DisablePlayerCheckpointEx(playerid);
			DisablePlayerRaceCheckpointEx(playerid);
			CP[playerid] = 0;
			JobVehicle[playerid] = 0;
			RemovePlayerAttachedObject(playerid, 2);
			RemovePlayerAttachedObject(playerid, 6);
			JobDeelay[playerid][PlayerInfo[playerid][pJob]] = 180;	
		}
		else JobLeftTime[playerid] = 120;	
	}


Alte detalii:

Link to comment
Share on other sites

  • 577777 locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...