Timer for fuel decreasing
#4

You check "GetVehicleModel" wrong. It returns an integer value (the vehicle model or 0 if not existing), while you are checking it for boolean values! (true/false)
So, this:
pawn Код:
public FuelUpdate()
{
    for(new i = 1;i<MAX_VEHICLES;i++)
    {
        if(GetVehicleModel(i))
        {
should be:
pawn Код:
public FuelUpdate()
{
    for(new i = 1;i<MAX_VEHICLES;i++)
    {
        if(GetVehicleModel(i) != 0) // or if(GetVehicleModel(i) > 400 && GetVehicleModel(i) < 611)
        {
Reply


Messages In This Thread
Timer for fuel decreasing - by _Khaled_ - 16.07.2013, 03:08
Re: Timer for fuel decreasing - by _Khaled_ - 16.07.2013, 23:15
Re: Timer for fuel decreasing - by DobbysGamertag - 16.07.2013, 23:41
Re: Timer for fuel decreasing - by RajatPawar - 17.07.2013, 06:09

Forum Jump:


Users browsing this thread: 1 Guest(s)