Problem
#1

Can't understand how to do,please help.
I need when in the car, stays 15 liters of petrol,what would the driver get the message "In the car the gas needed to fuel"
With me + for the help
I do like that,but I do not what won't work.
PHP код:
    if(newstate == PLAYER_STATE_DRIVER)
    {
        if(
GetVehicleModel(caridi) != 481 || GetVehicleModel(caridi) != 509 || GetVehicleModel(caridi) != 510)
        {
            if(
EngineState[playerid] == false)
            if(
Fuell[caridi] <= 15) return PlayerPlaySound(playerid306000.00.00.0),SCM(playeridCOLOR_RED"In the car running out of petrol,you need to refuel");//Here's how I'm doing
            
{
                
SCM(playerid,COLOR_GREEN"{00AB06}ЧTo start the engine press {FC0303}'2'{00AB06} or type the command {FC0303}/en");
            }
        }
    } 
Waiting for help
(I'm Russian,and can write with mistakes,please ignore)
Reply
#2

okay, you want the car when fuel is 15 and the engine is turned on, you show the driver a message?

PHP код:
if(newstate == PLAYER_STATE_DRIVER)
{
    if(
GetVehicleModel(caridi) != 481 || GetVehicleModel(caridi) != 509 || GetVehicleModel(caridi) != 510)
     {
          if(
EngineState[playerid])
          {
            if(
Fuell[caridi] > 15)
            {
                
SCM(playerid,COLOR_GREEN"{00AB06}ЧTo start the engine press {FC0303}'2'{00AB06} or type the command {FC0303}/en");
            }
            else{
                
PlayerPlaySound(playerid306000.00.00.0);
                
SCM(playeridCOLOR_RED"In the car running out of petrol,you need to refuel");
            }
        }
    }

Reply
#3

Not working =(
Reply
#4

All handled himself,the subject is closed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)