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


Messages In This Thread
What's wrong with this? - by Outcast - 09.08.2011, 11:34
Re : What's wrong with this? - by jasonnw666 - 09.08.2011, 15:02
Re: What's wrong with this? - by admantis - 09.08.2011, 15:31
Re: What's wrong with this? - by MadeMan - 09.08.2011, 16:14

Forum Jump:


Users browsing this thread: 4 Guest(s)