29.08.2010, 08:43
Okay so I'm experiencing some problems here. In my /carlock command I'm using this GetClosestvehicle function and it works fine to check if the car is locked or unlocked etc. When I add this, however, it stops to work. Don't this about what strmatch is..
Okay so if I add GetPlayerVehicleID(playerid) on the GetClosestVehicle spot it all works fine when being inside the vehicle. When adding GetClosestVehicle it doesn't work at all..
pawn Код:
if(strmatch(CarSystem[GetClosestVehicle(playerid,5)][Carowner],pName(playerid)))
Okay so if I add GetPlayerVehicleID(playerid) on the GetClosestVehicle spot it all works fine when being inside the vehicle. When adding GetClosestVehicle it doesn't work at all..