16.02.2012, 23:09
Alright, I ran and compiled this with no errors, but the minute I go to test it on my server, it doesn't work...
pawn Код:
if(!strcmp(cmdtext, "/engine", true))
{
new veh = GetPlayerVehicleID(playerid);
new engineStatus[MAX_VEHICLES];
if(engineStatus[veh] = 0)
{
new
engine,
lights,
alarm,
doors,
bonnet,
boot,
objective;
GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(veh, 1, lights, alarm, doors, bonnet, boot, objective);
engineStatus[veh] = 1;
}
else
{
new engine, lights, alarm, doors, bonnet, boot,objective;
GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(veh, 0, lights, alarm, doors, bonnet, boot, objective);
engineStatus[veh] = 0;
}
return 1;
}