SA-MP Forums Archive
[0.3x]Not checking 574 vehicle ID. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [0.3x]Not checking 574 vehicle ID. (/showthread.php?tid=413492)



[0.3x]Not checking 574 vehicle ID. - Magic_Time - 05.02.2013

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.


Re: [0.3x]Not checking 574 vehicle ID. - dugi - 05.02.2013

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


Re: [0.3x]Not checking 574 vehicle ID. - Magic_Time - 05.02.2013




Re: [0.3x]Not checking 574 vehicle ID. - Jochemd - 05.02.2013

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?