Raised This Month: $ Target: $400
 0% 

[Github] Adding .inc file from another repository


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 03-01-2018 , 06:39   Re: [Github] Adding .inc file from another repository
Reply With Quote #3

Quote:
Originally Posted by KliPPy View Post
The optional path argument lets you set where you want it to reside in your project, but by default it will reside in /submodule-name (or /cromchat in your case), but I guess for your case you'd want this:
Code:
git submodule add https://github.com/OciXCrom/cromchat scripting/cromchat
and in your crx_chatmanager.sma you can
PHP Code:
#include "cromchat/cromchat.inc" 
I must admit that I haven't been playing around much with submodules, but didn't you mean:

Code:
git submodule add https://github.com/OciXCrom/cromchat scripting/include/cromchat
Otherwise I believe the path to the cromchat.inc file @ #include will be a little bit incorrect?

?
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode