About #include - 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: About #include (
/showthread.php?tid=400673)
About #include -
Prodzect - 19.12.2012
Hello folks..
I really curious about #include, let's say we have this code
Код:
public OnGameModeInit()
{
#include "load_object.pwn"
#include "load_textdraw.pwn"
}
load_object.pwn file is empty
textdraw from load_textdraw.pwn not loading, but if i put load_textdraw.pwn before load_object.pwn then textdraw is loaded.. i don't understand..
can someone explain to me when and where i can use #include and when or where can't?
Sorry for english..
Re: About #include -
liquor - 19.12.2012
Put the #include s at the top of the script, NOT inside a callback (such as OnGameModeInit), look where #include <a_samp> is, and put it under that.