GetClosestVehicle Problem..
#1

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..

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..
Reply
#2

pawn Код:
GetClosestVehicle(playerid,5)
Does 5 means range?
If so, than possible, that it doesn't work because there is no vehicles in such range.
Reply
#3

use strcmp instead of strmatch
Reply
#4

Quote:
Originally Posted by Voldemort
Посмотреть сообщение
use strcmp instead of strmatch
I tried strcmp but now it doesn't even work with GetPlayerVehicleID....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)