[0.3x]Not checking 574 vehicle ID.
#1

Hi,
When I try to check a vehicle, in this case the "574" which is called "Sweeper" console does not detect it. I've tried several ways and does not work.

EDIT: I tried with others vehicles and unfortunately, No works.

Proofs:

PHP код:
CMD:mycar(playeridparams[])
{
if(
IsPlayerInVehicle(playerid574))
{
SendClientMessage(playerid, -1"You are in a sweeper");
}
return 
1;

I tried to perform this command ingame, It didn't work...

I'm currently using the client 0.3x.
Reply
#2

It's the vehicle ID in your script not model ID.
Reply
#3

Reply
#4

pawn Код:
CMD:mycar(playerid, params[])
{
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
    {
        SendClientMessage(playerid, -1, "You are in a sweeper");
    }
    return 1;
}
You see what you did wrong?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)