11.11.2012, 12:34
Queria saber qual й o significado desse erro aqui que dб quando eu vo tentar compilar:
Код:
(70549) : warning 209: function "EngineTimer" should return a value
pawn Код:
// ЙЙЙЙ A ULTIMA LINHA DAQUI!!
// OLHE A ULTIMA LINHA!!
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");
}
}
} //70549