How to check if the result is 1?
#2

You could make an stock:

pawn Код:
stock IsVehicleLocked(vehicleid)
{
     if(vInfo[vehicleid][Locked] == 1) return 1;
     return 0;
}
How to use it:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
     if(IsVehicleLocked(vehicleid))
     {
           // Do shit if the vehicle is locked.
     }
}
Btw, you might want to check out my fresh tutorial https://sampforum.blast.hk/showthread.php?tid=186495
Reply


Messages In This Thread
How to check if the result is 1? - by ajwar - 29.10.2010, 13:16
Re: How to check if the result is 1? - by Cameltoe - 29.10.2010, 13:19
Re: How to check if the result is 1? - by ajwar - 29.10.2010, 13:20
Re: How to check if the result is 1? - by Cameltoe - 29.10.2010, 13:25
Re: How to check if the result is 1? - by ajwar - 29.10.2010, 13:37

Forum Jump:


Users browsing this thread: 2 Guest(s)