18.03.2016, 13:29
You have to connect to your database under OnGameModeInit.
I quote the tutorial:
I quote the tutorial:
Quote:
Till this point, we haven't really connected to the database yet. The connection happens in OnGameModeInit. Why? Because we would like to load all the data (not player-related) when the gamemode initializes. We use the following snippet of code to do so:
PHP Code:
|