CarID problem
#3

Quote:
Originally Posted by yezizhu
Hi,,where's "if"?
pawn Код:
IsPlayerInAnyVehicle(playerid);
And I suggest use GetPlayerVehicleID
pawn Код:
if(!strcmp(...)){
  if(GetPlayerVehicleID(playerid)) printf "id:%d,%d",playerid,GetPlayerVehicleID(playerid);
else print "not in vec"
  return true;
}
pawn Код:
if(!strcmp(...))
{
  if(IsPlayerInAnyVehicle(playerid) == true)
  {
    printf("id:%d,%d",playerid,GetPlayerVehicleID(playerid));
  }
  else
  {
    print("not in vehicle");
  }
  return 1;
}
Reply


Messages In This Thread
CarID problem - by JoeDaDude - 08.06.2009, 21:19
Re: CarID problem - by yezizhu - 09.06.2009, 01:24
Re: CarID problem - by [HiC]TheKiller - 09.06.2009, 05:39

Forum Jump:


Users browsing this thread: 3 Guest(s)