Invalid function or declaration
#4

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:
PHP код:
SetVehicleEngineState(vehicleidvstate)
{
    new 
enginelightsalarmdoorsbonnetbootobjective;
    
GetVehicleParamsEx(vehicleidenginelightsalarmdoorsbonnetbootobjective);
    return 
SetVehicleParamsEx(vehicleidvstatelightsalarmdoorsbonnetbootobjective);

Return Values:
  • 1: The function executed successfully.
  • 0: The function failed to execute. This means the vehicle does not exist. - May come in handy
In any other means, it's advised to return a 0 or a 1 when functions don't return any specific values.
Reply


Messages In This Thread
Invalid function or declaration - by GoldenLion - 06.11.2016, 15:27
Re: Invalid function or declaration - by PeanutButter - 06.11.2016, 15:38
Re: Invalid function or declaration - by GoldenLion - 06.11.2016, 16:03
Re: Invalid function or declaration - by SickAttack - 06.11.2016, 16:58

Forum Jump:


Users browsing this thread: 1 Guest(s)