Fuel drops instantly.
#1

Hello, After a few players have joined i am not sure if its because of that but the fuelbar drops in 30 seconds the timer isnt set for that and i have the same problem with the hunger system (i use the same system)

So if anyone could help me i would really appreciate that
This is my code thingie for the timer only
pawn Код:
public timer_fuel_lower(playerid)
{
        new vid = GetPlayerVehicleID(playerid);
        if (GetPlayerVehicleSeat(playerid) == 0){
           GetVehicleParamsEx(playerid,engine,lights,alarm,doors,bonnet,boot,objective);
            fuel[vid] = fuel[vid] -1;
            if (fuel[vid]<1)
            {
                fuel[vid] = 0;
                SetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective);
                VehEngine[vid] =0;
                SCM(playerid, red,"[System] You are out of fuel");
        }
        }
    SetProgressBarValue(bar_fuel[playerid], fuel[vid]);
    UpdateProgressBar(bar_fuel[playerid], playerid);
        }
Reply


Messages In This Thread
Fuel drops instantly. - by demonarn - 11.02.2012, 10:38
Re: Fuel drops instantly. - by milanosie - 11.02.2012, 10:40
Re: Fuel drops instantly. - by demonarn - 11.02.2012, 10:44
Re: Fuel drops instantly. - by Voldemort - 11.02.2012, 10:55
Re: Fuel drops instantly. - by milanosie - 11.02.2012, 10:56
Re: Fuel drops instantly. - by Babul - 11.02.2012, 10:58
Re: Fuel drops instantly. - by demonarn - 11.02.2012, 11:01
Re: Fuel drops instantly. - by demonarn - 11.02.2012, 11:03
Re: Fuel drops instantly. - by milanosie - 11.02.2012, 11:04
Re: Fuel drops instantly. - by demonarn - 11.02.2012, 11:10

Forum Jump:


Users browsing this thread: 1 Guest(s)