IsPlayerInVehicle bugged?
#1

Is IsPlayerInVehicle bugged? There're no errors/warnings. It just doesn't work.

pawn Код:
if (strcmp("/command", cmdtext, true, 10) == 0)
{
    if(IsPlayerInVehicle(playerid, 476)) // If the player is in rustler
    {
       ...
    }
    return 1;
}
Reply
#2

Quote:
Originally Posted by ʞɹod ɹǝpıds || SpiderPork
Is IsPlayerInVehicle bugged? There're no errors/warnings. It just doesn't work.

pawn Код:
if (strcmp("/command", cmdtext, true, 10) == 0)
{
    if(IsPlayerInVehicle(playerid, 476)) // If the player is in rustler
    {
       ...
    }
    return 1;
}
IsPlayerInVehicle is by ID not by model.
Reply
#3

I used GetPlayerVehicleID instead of IsPlayerInVehicle, but it's still the same.
Reply
#4

You need this

https://sampwiki.blast.hk/wiki/GetVehicleModel

Not GetVehicleID
Reply
#5

Damn, I'm getting rusty . It works now.

Thanks for your help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)