SA-MP Forums Archive
How can I load defines from a diffrent source? - 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: How can I load defines from a diffrent source? (/showthread.php?tid=309018)



How can I load defines from a diffrent source? - Azzeto - 06.01.2012

Like if I created an include, would I just put
#define sultan 560
#define elegy 562

and so on? ina .inc?


Re: How can I load defines from a diffrent source? - vincee - 06.01.2012

#include <ina>
on the filterscript/source

and yes it works


AW: How can I load defines from a diffrent source? - BigETI - 06.01.2012

Just create an include file in your pawno\includes folder and put the stuff you want included in:

pawn Код:
#if defined sultan
#define sultan 560
#endif
#if defined elegy
#define elegy 562
#endif
then in your gamemode/filterscript on top
pawn Код:
#include <insert_name_here>



Re: How can I load defines from a diffrent source? - TheArcher - 06.01.2012

But why creating an inculude for only 3 functions? What the....