[Ajuda] Qual й o significado desse erro?
#2

Nгo era pra ter return ?

Tente agora:
Код:
public EngineTimer(playerid)
{
        new mot, lu, alar, por, cap, porma, ob;
        new carro = GetPlayerVehicleID(playerid);

        new vid = GetPlayerVehicleID(playerid);
        if(Gas[vid] == 0)
                return SendClientMessage(playerid,COLOR_GRAD2," Veiculo sem Combustivel");
        if(LigadoDesligado2[vid] == 1)
        {
            motor[playerid] = 1;
        }
        if(LigadoDesligado2[vid] == 0)
        {
            motor[playerid] = 0;
        }
        if(carro != INVALID_VEHICLE_ID)
        {
            if(motor[playerid] == 0)
            {
                GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
                SetVehicleParamsEx(carro, VEHICLE_PARAMS_ON, lu, alar, por, cap, porma, ob);
                motor[playerid] = 1;
                LigadoDesligado2[carro] = 1;
                SendClientMessage(playerid, COLOR_WHITE, "Motor do veiculo ligado");
            }
            else
            {
                GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
                SetVehicleParamsEx(carro, VEHICLE_PARAMS_OFF, lu, alar, por, cap, porma, ob);
                motor[playerid] = 0;
                LigadoDesligado2[carro] = 0;
                SendClientMessage(playerid, COLOR_WHITE, "Motor do veiculo desligado");
            }
        }
        return 1;
}
Reply


Messages In This Thread
Qual й o significado desse erro? - by GuiihCamargo - 11.11.2012, 12:34
Re: Qual й o significado desse erro? - by Baiano - 11.11.2012, 12:36
Re: Qual й o significado desse erro? - by GuiihCamargo - 11.11.2012, 12:42

Forum Jump:


Users browsing this thread: 2 Guest(s)