15.06.2012, 23:18
There was a lot of saving code cluttering my mode, so I decided I would move all code that interacts with the database into an include file.
This is at the top the of gamemode.
I am trying to access that PlayerInfo variable in my include to save/load data. How do I do that? It was to my understanding that global variables are easily accessible throughout scripts, but my compiler whines that the variable is undefined in the include. Before you say, I have already looked at the scopes of variable, still haven't found a solution.
This is at the top the of gamemode.
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];