06.11.2016, 16:58
On functions that have a similar name to natives and when those natives have specific return values, I recommend returning the natives in the functions:
Return Values:
PHP код:
SetVehicleEngineState(vehicleid, vstate)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
return SetVehicleParamsEx(vehicleid, vstate, lights, alarm, doors, bonnet, boot, objective);
}
- 1: The function executed successfully.
- 0: The function failed to execute. This means the vehicle does not exist. - May come in handy