06.11.2013, 07:14
Hi,
Lately I've been interested in a modular/part-by-part script. Basically, my interpretation of that is this:
You have say five files:
Main script (Main commands, main everything)
Business script (Business commands, everything to do with businesses)
House script (House commands, everything to do with houses)
Factions script (Factions commands, everything to do with factions)
Admin script (Admin commands, everything to do with admins)
So basically, how would I make it so that I could have all of those scripts seperate but functioning as one server?
So like within Main script I'd have:
And then let's say we have a function:
^ Within business-script, how would I make that usable within the main script?
Another example would be let's say using an enum such as;
^ From business-script and using it within the main script.
How is this possible? Also, could someone tell me the proper name for it? I have searched within the forums and believe me, I have searched, yet there is nothing there that helps me with this. If there are any tutorials or whatever, I'd like to see them, if you guys can help me or tell me, I'd be very appreciative.
Lately I've been interested in a modular/part-by-part script. Basically, my interpretation of that is this:
You have say five files:
Main script (Main commands, main everything)
Business script (Business commands, everything to do with businesses)
House script (House commands, everything to do with houses)
Factions script (Factions commands, everything to do with factions)
Admin script (Admin commands, everything to do with admins)
So basically, how would I make it so that I could have all of those scripts seperate but functioning as one server?
So like within Main script I'd have:
pawn Code:
#include business-script
#include house-script
#include factions-script
#include admin-script
pawn Code:
CreateBusiness(ecetra)
Another example would be let's say using an enum such as;
pawn Code:
BusinessInfo[ecetra][ecetra]
How is this possible? Also, could someone tell me the proper name for it? I have searched within the forums and believe me, I have searched, yet there is nothing there that helps me with this. If there are any tutorials or whatever, I'd like to see them, if you guys can help me or tell me, I'd be very appreciative.