08.11.2017, 10:32
Quote:
You're totally right about the weight issue, I'm going to change it. The funny fact is that I used "mass" as variable name! On the other hand, this include calls OnVehicleRespray when Pay 'n' Spray shops are used and applies random colors also.
Thanks for pointing that out. |
EDIT: Another thing, instead of using "CallLocalFunction", call the function directly in case of custom functions, since defualt samp ones like "OnVehicleRespray" are declared no matter you define them (public) or not.
Example:
PHP код:
// replace this
CallLocalFunction("OnVehicleCreated", "i", vehicleid);
// to
#if defined OnVehicleCreated
OnVehicleCreated(vehicleid);
#endif
// and for decleration
#if defined OnVehicleCreated
forward OnVehicleCreated(vehicleid);
#endif