07.06.2011, 10:37
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.
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.
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; } } }
or can someone help me to make anothere code that can make the [isvehiclespawned] become 0 after the vehicle is not there anymore.
Thanks.