command error 035: argument type mismatch (argument 2)
#1

I keep getting an error over if(GetVehiclePos(vehicleid, 0,0,0)).
I wanted to make if the vehicle is spawned, then if the pos is at X:0 Y:0 Z:0( that means that the vehicle is not there anymore) then the [isvehiclespawned] will be 0 once again after the vehicle is not there anymore.
Heres the code.
Код:
public vehiclepos()
{
	if(isvehiclespawned == 1)
	{	        
		if(GetVehiclePos(vehicleid, 0, 0, 0))
		{
			isvehiclespawned = 0;			
  		}
	}
}
Can someone help :/
or can someone help me to make anothere code that can make the [isvehiclespawned] become 0 after the vehicle is not there anymore.
Thanks.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)