/fill ammount
#3

PHP код:
public Refilling(playeridvehicleidenginelightsalarmdoorsbonnetbootobjective)
                    {
                        if(!
IsPlayerInAnyVehicle(playerid))
                        {
                            
IsRefilling[playerid] = false;
                            
KillTimer(RefillingTimer[playerid]);
                        }
                        if(
VehicleFuel[vehicleid] == 1000
                        {
                            
SendClientMessage(playerid,COLOR_RED,"Ai facut plinul de 150Lei, Poti pleca!");
                            
IsRefilling[playerid] = false;
                              
IsRanOutOfFuel[vehicleid] = false;
                            
printf("vehREFILL");
                            
KillTimer(RefillingTimer[playerid]);
                            return 
1;
                        }
                        
IsRefilling[playerid] = true;
                        new 
TD_String[25];
                        
VehicleFuel[vehicleid]+=1;//cause i multiple 100 to 1000 there is comming a 0 extra
                        
new SecondFuel VehicleFuel[vehicleid] % 10,
                        
FirstFuel = (VehicleFuel[vehicleid] - SecondFuel) / 10;
                        
format(TD_String25"%i.%i"FirstFuel,SecondFuel);//i have 99.8 i go
                        
TextDrawSetString(Text:Values[playerid][2], TD_String);//playerid?yea
                          
return 1;
                    } 
Reply


Messages In This Thread
/fill ammount - by Akcent_Voltaj - 01.07.2014, 14:51
Re: /fill ammount - by LivingLikeYouDo - 01.07.2014, 15:08
Re: /fill ammount - by Akcent_Voltaj - 01.07.2014, 15:10
Re: /fill ammount - by Akcent_Voltaj - 01.07.2014, 15:25

Forum Jump:


Users browsing this thread: 1 Guest(s)