Forwarding a variable to a dialog?
#1

....
Reply
#2

I believe (as in, don't quote me on this) you can use .irf files to put other pieces of the mode in. For example, one of my modes uses .irf files and splits up admin commands, player commands, threaded queries, stock/public functions, etc.

I don't need to add include lines at the top of those .irf files, and all I have to do is include them in my game-mode underneath all global variables and I can use anything from the mode. So, you can have these .irf files in a /data folder which could be in your /gamemodes folder, and you can load it into the mode with this code:

pawn Код:
#include <..\..\gamemodes\data\filename.irf>
Just remember to include it into the mode AFTER you define all variables, etc. A good spot for me was right before "OnGameModeInit()" because all of my variable definitions, etc, are above that callback.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)