Please HELP ME ASAP
#1

Hey i need help with..
i've made Mechanic Cars But There's a problem, i don't know why when Entering "rentcars" it says "You're not a mechanic"

Here's what i've done
For example:
Код:
new Mechaniccars[4];
Код:
Mechaniccars[0] = AddStaticVehicle(490,1668.8650,-1716.8369,15.6973,93.7591,0,0); //
	Mechaniccars[1] = AddStaticVehicle(490,1668.8347,-1710.1844,15.7777,92.1376,0,0); //
	Mechaniccars[2] = AddStaticVehicle(490,1668.6270,-1703.3350,15.7783,90.5370,0,0); //
	Mechaniccars[3] = AddStaticVehicle(490,1668.3159,-1696.6547,15.7775,91.7113,0,0); //
Код:
	}
		if(vehicleid >= Mechaniccars[0] && vehicleid <= Mechaniccars[3])
	{
	    if(PlayerInfo[playerid][pJob] != 7)
	    {
  		    SendClientMessage(playerid, COLOR_GREY,"You are not a Mechanic ");
	    	ClearAnimations(playerid);
	    }
What's the problem
Reply
#2

It's because player's mechanic job array isn't set to 7 or the required one. Ensure that you've set player's job to 7.
pawn Код:
PlayerInfo[playerid][pJob] = 7;
Reply
#3

Do you use loop to check if the vehicle is rented car? Please place the code of the rented cars too.
Reply
#4

Quote:
Originally Posted by dominik523
Посмотреть сообщение
Do you use loop to check if the vehicle is rented car? Please place the code of the rented cars too.
Thanks! +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)