Engine problem
#1

pawn Код:
CMD:engine(playerid,params[])
{
    if(GetPlayerState(playerid)!=PLAYER_STATE_DRIVER)
    {
        new vID=GetPlayerVehicleID(playerid),
            tmp_engine,
            tmp_lights,
            tmp_alarm,
            tmp_doors,
            tmp_bonnet,
            tmp_boot,
            tmp_objective;
        GetVehicleParamsEx(vID, tmp_engine, tmp_lights, tmp_alarm, tmp_doors, tmp_bonnet, tmp_boot, tmp_objective);
        if(tmp_engine==1){
            tmp_engine = 0;
        }else{
            tmp_engine = 1;
        }
        SetVehicleParamsEx(vID, tmp_engine, tmp_lights, tmp_alarm, tmp_doors, tmp_bonnet, tmp_boot, tmp_objective);
    }
    return 1;
}
I have this command and its not showing any errors but when i enter a car and write /engine nothing happnes.
Reply


Messages In This Thread
Engine problem - by MatriXgaMer - 09.01.2014, 09:35
Re: Engine problem - by amirab - 09.01.2014, 10:01
Re: Engine problem - by [TMS]Legena - 09.01.2014, 11:21
Re: Engine problem - by iBots - 09.01.2014, 12:44

Forum Jump:


Users browsing this thread: 1 Guest(s)