Posts: 15,941
Threads: 0
Joined: Jun 2008
Quote:
Originally Posted by Dayvison_
|
For a moment I got very excited by the prospects of this, but then after some playing I realised that it is not as useful as it might at first seem for one simple reason - it is included before "a_samp". Yes, you could include "a_samp" from inside it, but a common pattern is:
PHP код:
#include <a_samp>
#undef MAX_PLAYERS
#define MAX_PLAYERS 20
#include <other>
If "default.inc" existed, and even if it included "a_samp" itself, all of its code would be parsed before the redefinition of "MAX_PLAYERS", so any code that relied on that value would be wrong. My first thought was for automatic inclusion of "fixes.inc", but that wouldn't work. Almost any non-trivial code that in any way dealt with the SA:MP API would be unable to be located in that file (and frankly that doesn't leave much - even "amx_assembly" includes "a_samp" (though I'm not entirely sure why)).