LukeRM Posted July 7, 2009 Author Share Posted July 7, 2009 How do you use includes? Mine don't seem to work. Link to comment Share on other sites More sharing options...
Godlord Posted July 7, 2009 Share Posted July 7, 2009 Your script file should be in the same folder. If your scripting folder is /server/scripts/ and you want to include random.txt into main.txt then you should put #include at the top of main.txt.Lets say you've a script called dumbledore.txt and it's in /server/scripts/project4/src/ then you should put #include (Might be \ instead due Windows) at the top.Regards, Godlord. Link to comment Share on other sites More sharing options...
LukeRM Posted July 7, 2009 Author Share Posted July 7, 2009 Thanks. I've really been needing the separate scripts. Link to comment Share on other sites More sharing options...
Admiral Refuge Posted July 7, 2009 Share Posted July 7, 2009 @LukeRM:> Thanks. I've really been needing the separate scripts.Welcome to Eclipse.You may want to check out this main.txt:http://www.touchofdeathforums.com/smf/index.php/topic,44071.0.html Link to comment Share on other sites More sharing options...
emblem Posted July 7, 2009 Share Posted July 7, 2009 @Die:> (Might be \ instead due Windows)It is indeed \ to separate paths. Link to comment Share on other sites More sharing options...
Godlord Posted July 7, 2009 Share Posted July 7, 2009 @«Emblem»:> It is indeed \ to separate paths.In C/C++ compilers both are allowed so I'm used to /.Regards, Godlord. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now