17.02.2019, 13:17
(
Последний раз редактировалось kristo; 17.02.2019 в 14:49.
)
Quote:
Well if you include it in the very main file, and include your filterscripts/includes after it will be running for every script.
|
Also, here's a quick example why it should be included as the last file in each include/module:
pawn Код:
// first.pwn
#include <YSI_Coding\y_hooks>
hook OnGameModeInit() { // compiles as @yH_OnGameModeInit@001
return 1;
}
// second.pwn
#include <YSI_Coding\y_hooks>
#include "first.pwn"
hook OnGameModeInit() { // also compiles as @yH_OnGameModeInit@001
return 1;
}
pawn Код:
// first.pwn
#include <YSI_Coding\y_hooks>
hook OnGameModeInit() { // compiles as @yH_OnGameModeInit@000
return 1;
}
// second.pwn
#include "first.pwn"
#include <YSI_Coding\y_hooks>
hook OnGameModeInit() { // compiles as @yH_OnGameModeInit@001
return 1;
}