Problem with fuel timer.
#1

So timer should check, if fuel is 0, it turn engine off. But it do it also when fuel is not 0.

pawn Код:
if(Engine[v] == 1)
   {
   if(vInfo[v][vBensiin] > 0)
   {

    vInfo[v][vBensiin] -=1;
    }
    else if(vInfo[v][vBensiin] == 0)
    {
    Engine[v] = 0;
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(v, engine, lights, alarm, doors, bonnet, boot, objective);//This bit is checking the current status of the vehicles.
    SetVehicleParamsEx(v, 0, lights, alarm, doors, bonnet, boot, 0);
       
    }
}
Reply


Messages In This Thread
Problem with fuel timer. - by AA9 - 17.02.2014, 17:35
Re: Problem with fuel timer. - by Lidor124 - 17.02.2014, 18:57
Re: Problem with fuel timer. - by AA9 - 17.02.2014, 19:10
Re: Problem with fuel timer. - by Lidor124 - 17.02.2014, 19:19

Forum Jump:


Users browsing this thread: 1 Guest(s)