timer problems
#5

Funny iv done that exact thing, I also did
Код:
if(newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_DRIVER)	
	{
		if(GetPlayerVehicleID(playerid) == JobInfo[JOB_TRUCKER][jCars][0] || GetPlayerVehicleID(playerid) == JobInfo[JOB_TRUCKER][jCars][1] || GetPlayerVehicleID(playerid) == JobInfo[JOB_TRUCKER][jCars][2] || GetPlayerVehicleID(playerid) == JobInfo[JOB_TRUCKER][jCars][3] || GetPlayerVehicleID(playerid) == JobInfo[JOB_TRUCKER][jCars][4]) 
		{
			KillTimer(TruckTimer[playerid]);
			KillTimer(TrailerTimer[playerid]);
			GameTextForPlayer(playerid, "~r~Truck jacked!", 3500, 3);
			PlayerInfo[playerid][pDeliverTruck] = -1;
			TruckPackages[GetPlayerVehicleID(playerid)] = -1;
			PlayerInfo[playerid][pTPackages] = 0;

		}
	}
Its just not working, It worked fine here until I added the check for if the car was a truck. I think this is where the problem lies. I just need to figure out how to check it properly...
Reply


Messages In This Thread
timer problems - by oblexive - 13.07.2012, 13:09
Re: timer problems - by clarencecuzz - 13.07.2012, 13:20
Re: timer problems - by oblexive - 13.07.2012, 13:35
Re: timer problems - by clarencecuzz - 13.07.2012, 13:42
Re: timer problems - by oblexive - 13.07.2012, 13:50

Forum Jump:


Users browsing this thread: 2 Guest(s)