21.06.2018, 06:26
(
Last edited by Sew_Sumi; 21/06/2018 at 07:37 AM.
)
Quote:
I still use but i still prefer use this for command, admin system, map, etc.
This will help me to edit script for future release. Code:
#include "../gamemodes/command.pwn" Code:
#include "../gamemodes/maps.pwn" Code:
#include "../gamemodes/adminscript.pwn" |
It will work, but as you go on, things will start malfunctioning, and you'll have errors from doing this.
-Edit-
This also is said, not addressing the first post, which wouldn't do anything but make complete issues, but in particular, you, with your approach, will have to look into hooks before too long, if you haven't already.
Along with this, is variable types the like of the last few threads addressing issues caused by this. Y_Less has commented a couple of times in those threads, regarding what I'm trying to point out, so you'll want to be looking at those threads.
I keep an eye out for those kind of comments, because I myself, really like the modular concept.
If you also haven't seen it before, you'll want to be looking at Grand Theft Online 0.5.7. The last version of the original author is what I'd go off, as it's all in English, and it's as it was made by the original author. Over time the script got editted by a few, which means it loses the original concept, and conveyance by the author.
Beware, it doesn't compile and is severely broken, but it is a good example of what I think is a good base.
All these other scripts, have all simply hacked up their gamemodes to suit the 'idea', yet the GTO script, was built like this from the start, and it shows.