Large problem I need solved asap
#7

Every second it checks the vehicle.

Here is the code:

Code:
public UpdateCars()
{
    new i,c,close;
    new Float:X,Float:Y,Float:Z;
	CheckLockedCars();
	car:
	if(c<800)
	{
	    if(CarDestroy[c] == 1)
	    {
	    	iplayers:
	    	if(i<MAX_PLAYERS)
	    	{
	    	    if(IsPlayerConnected(i))
	    		{
	    	    	GetVehiclePos(c,X,Y,Z);
	    	    	if(IsPlayerInRangeOfPoint(i,70,X,Y,Z))
	    	    	{
	    	    	    close++;
					}
				}
				i++;
				goto iplayers;
			}
			if(close==0)
			{
			    if(CarDestroy[c] == 1)
			    {
			        DestroyVehicle©;
			        CarDestroy[c] = 0;
				}
			}
		}
		c++;
		close=0;
		goto car;
	}
	return 1;
}
Reply


Messages In This Thread
Large problem I need solved asap - by Tyler_Idy - 05.08.2010, 02:11
Re: Large problem I need solved asap - by Mr187 - 05.08.2010, 02:35
Re: Large problem I need solved asap - by Tyler_Idy - 05.08.2010, 02:38
Re: Large problem I need solved asap - by Mr187 - 05.08.2010, 02:39
Re: Large problem I need solved asap - by Tyler_Idy - 05.08.2010, 02:41
Re: Large problem I need solved asap - by Mr187 - 05.08.2010, 02:46
Re: Large problem I need solved asap - by Tyler_Idy - 05.08.2010, 02:49
Re: Large problem I need solved asap - by marharth - 05.08.2010, 03:17
Re: Large problem I need solved asap - by Tyler_Idy - 05.08.2010, 03:21
Re: Large problem I need solved asap - by Kar - 05.08.2010, 03:27

Forum Jump:


Users browsing this thread: 1 Guest(s)