"Undeclare" a native
#1

Hi,

I'm trying to make an include that disables some SA:MP functionalities. This is needed for my project.

For example, I need to disable 'SetVehicleVirtualWorld'.

I tried to #undef SetVehicleVirtualWorld, but the compiler says 'undefined symbol SetVehicleVirtualWorld'. And it is right, because natives are not defined.

Defining SetVehicleVirtualWorld as another function will not solve the problem.

Is there another possibility?

EDIT: Solved. Just had to force a compiler error.

pawn Код:
#define SetVehicleVirtualWorld #error
This will return 'invalid expression', which is perfect.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)