04.11.2011, 09:34
Still you make confusion. Look:
Here you are calling GetClosestVehicle for carid which actually doesn't exist. You need to get closest vehicle from player and you are taking it from carid which, as I said, doesn't exist. Get Player's co-ordinates and then make it so it get's closest vehicle from those x,y,z.
PHP код:
new carid = GetClosestVehicle(carid);