/fuelcars
#1

i type /fuelcars and people dont get 100.0 do their cars..



PHP код:
if(strcmp(cmd"/fuelcars"true) == 0)
                    {
                        new 
TD_String[25];
                        if(
PlayerInfo[playerid][pAdmin] < 4// when i did /fuelcars you had 99.9 and i had 100.0
                         
{
                             
SendClientMessage(playeridCOLOR_GREY"   You are not an Admin ! ");
                            return 
1;
                        }
                          for(new 
i=1MAX_VEHICLESi++) //why?
                           
{
                               new 
SecondFuel VehicleFuel[i] % 10,
                            
FirstFuel = (VehicleFuel[i] - SecondFuel) / 10;
                               
VehicleFuel[i] = 1000;//what if you delete the textdrw here
                            
format(TD_String25"%i.%i"FirstFuel,SecondFuel);// so lets say i have 99.8 i do /fuelcars and its still 99.8
                            
TextDrawSetString(Text:Values[playerid][3], TD_String); // was it i or playerid??before??
                        
}
                        
SendClientMessageToAll(COLOR_RED"• Toate Masinile au fost umplute de combustibil! •"); // compile?yeah;0 now the command is smaller,i always use this methode
                        
return 1;
                    } 
Reply


Messages In This Thread
/fuelcars - by Akcent_Voltaj - 30.01.2013, 14:08
Re: /fuelcars - by Roach_ - 30.01.2013, 15:35
Re: /fuelcars - by Akcent_Voltaj - 30.01.2013, 19:37
Re: /fuelcars - by Threshold - 30.01.2013, 19:45
Re: /fuelcars - by Akcent_Voltaj - 31.01.2013, 10:57
Re: /fuelcars - by Threshold - 31.01.2013, 11:01
Re: /fuelcars - by Akcent_Voltaj - 31.01.2013, 12:05
Re: /fuelcars - by Akcent_Voltaj - 31.01.2013, 13:52
Re: /fuelcars - by Akcent_Voltaj - 31.01.2013, 15:01

Forum Jump:


Users browsing this thread: 1 Guest(s)