Quote:
Originally Posted by Voldemort
pawn Код:
stock GetVehicleDriver(vehicleid) { foreach(Player,i)//replace with usual for(.. if you dont use foreach { if (IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == 2) { return i; } } return -1; }
|
Im not sure about this code, i need to check the playerids vehicle id, and this code doesnt do that, or are im wrong?