New Veh-Functions: Detect Engine
#1

Hey Guys,

I am trying to add the new functions to my script, but it doesn't work at all.
For example: How can I detect the engine state?

Код:
switch(Motor[veh]) {
case 0: motortext = "Off";
case 1: motortext = "On";
}
But that doesn't work:
Код:
new veh = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);

switch(engine) {
case VEHICLE_PARAMS_OFF: motortext = "Off";
case VEHICLE_PARAMS_ON: motortext = "On";
}
Reply


Messages In This Thread
New Veh-Functions: Detect Engine - by Stas92 - 31.12.2010, 10:38
Re: New Veh-Functions: Detect Engine - by DVDK - 31.12.2010, 11:24
Re: New Veh-Functions: Detect Engine - by Vince - 31.12.2010, 11:28
Re: New Veh-Functions: Detect Engine - by Stas92 - 31.12.2010, 12:03
Re: New Veh-Functions: Detect Engine - by legodude - 01.01.2011, 03:21
Re: New Veh-Functions: Detect Engine - by Sledge - 01.01.2011, 03:33
Re: New Veh-Functions: Detect Engine - by Joe Staff - 01.01.2011, 03:39
Re: New Veh-Functions: Detect Engine - by Stas92 - 01.01.2011, 14:19

Forum Jump:


Users browsing this thread: 3 Guest(s)