SA-MP Forums Archive
"Undeclare" a native - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: "Undeclare" a native (/showthread.php?tid=534894)



"Undeclare" a native - paulommu - 31.08.2014

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.