What's wrong with this?
#1

pawn Код:
public StartFixing(playerid, vehicleid)
{
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    if(bonnet == VEHICLE_PARAMS_OFF) return SendClientMessage(playerid, 0xFF0000AA, "[ERROR] You have to open your bonnet first");
    if(engine == VEHICLE_PARAMS_ON) return SendClientMessage(playerid, 0xFF0000AA, "[ERROR] You have to turn off your engine first");
    ApplyAnimation(playerid, "BD_Fire", "BD_Panic_Loop", 2, 1, 0, 0, 1, 0, 1);
    return 1;
}
It just skips the part where it checks if the bonnet is opened or closed. I don't know what's wrong with this.
Reply
#2

yes but what you want to do xd
Reply
#3

pawn Код:
public StartFixing(playerid, vehicleid)
{
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    if(bonnet) return SendClientMessage(playerid, 0xFF0000AA, "[ERROR] You have to open your bonnet first");
    if(engine) return SendClientMessage(playerid, 0xFF0000AA, "[ERROR] You have to turn off your engine first");
    ApplyAnimation(playerid, "BD_Fire", "BD_Panic_Loop", 2, 1, 0, 0, 1, 0, 1);
    return 1;
}
Reply
#4

pawn Код:
public StartFixing(playerid, vehicleid)
{
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    if(bonnet != VEHICLE_PARAMS_ON) return SendClientMessage(playerid, 0xFF0000AA, "[ERROR] You have to open your bonnet first");
    if(engine == VEHICLE_PARAMS_ON) return SendClientMessage(playerid, 0xFF0000AA, "[ERROR] You have to turn off your engine first");
    ApplyAnimation(playerid, "BD_Fire", "BD_Panic_Loop", 2, 1, 0, 0, 1, 0, 1);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)