argument of type "char *" is incompatible with parameter of type "Any *"
This may be due to any of the following reasons:
- Your natives.h file may be outdated. You can download the latest version here from NativeDB.
- The native you are trying to use has not been documented yet. You may need to edit natives.h manually, and/or update the NativeDB entry accordingly.
After some research, you have determined the native is as follows:
VEHICLE::SET_VEHICLE_NAME_DEBUG(Vehicle vehicle, char *name)
You should update the entry on NativeDB to reflect your changes. I believe NativeDB generates a new natives.h every 10 minutes, so you may want to manually update your file if you need to use it right away. If you do not do this, a compiler error will be generated if you try to use a string as the second parameter:
// VEHICLE::SET_VEHICLE_NAME_DEBUG(Any p0, Any *p1) VEHICLE::SET_VEHICLE_NAME_DEBUG(vehicle, "MIKE'S TAILGATER"); // error: argument of type "char *" is incompatible with parameter of type "Any *"
If you have any more questions regarding this subject, feel free to ask them here. This thread may be updated occasionally with solutions to common problems.