30.05.2018, 16:47
Hello,
So I am making a modular gamemode, I have my #includes sorted in the appropriate order and every .pwn has an ongamemodehook to tell me if its properly included but the output is not in the same order as my #includes list.
My console output:
While my #includes are in this order:
Does the console order matter? Why does it load not the same as the script order?
So I am making a modular gamemode, I have my #includes sorted in the appropriate order and every .pwn has an ongamemodehook to tell me if its properly included but the output is not in the same order as my #includes list.
My console output:
Код:
core/player/textdraws.pwn loaded core/player/dialogs.pwn loaded core/player/login.pwn loaded core/admin/functions.pwn loaded core/server/anticheat.pwn loaded core/server/economy.pwn loaded core/server/stocks.pwn loaded core/timers/onesecond.pwn loaded core/server/textdraws.pwn loaded core/server/publics.pwn loaded core/admin/bans.pwn loaded core/player/playerdata.pwn loaded core/factions/factiondata.pwn loaded core/faction/commands.pwn loaded
Код:
//Server #include "core/server/textdraws.pwn" #include "core/server/publics.pwn" //Admin #include "core/admin/bans.pwn" //Player #include "core/player/data.pwn" //Factions #include "core/factions/data.pwn" #include "core/factions/commands.pwn" //Player #include "core/player/textdraws.pwn" #include "core/player/dialogs.pwn" #include "core/player/login.pwn" //Admin #include "core/admin/functions.pwn" //Vehicles //Server (with player data variables) #include "core/server/anticheat.pwn" #include "core/server/economy.pwn" #include "core/server/stocks.pwn" //Timers #include "core/timers/onesecond.pwn"