17.12.2010, 16:17
I assume you have all your commands in a separate include-file?
If you add that line in your commands-file, you have to make sure that PlayerInfo is declared before you include your commands-file, otherwise the compiler complains about PlayerInfo not being defined yet.
This would be logical, if PlayerInfo is declared below your included commands-file.
this example would give lots of errors about such a mistake, as the compiler hasn't seen your declaration of PlayerInfo yet when including your commands-file.
Solution:
If you add that line in your commands-file, you have to make sure that PlayerInfo is declared before you include your commands-file, otherwise the compiler complains about PlayerInfo not being defined yet.
This would be logical, if PlayerInfo is declared below your included commands-file.
Код:
#include <PlayerCommands>
enum PInfo
{
// your fields here
}
new PlayerInfo[MAX_PLAYERS][PInfo];
Solution:
Код:
enum PInfo
{
// your fields here
}
new PlayerInfo[MAX_PLAYERS][PInfo];
#include <PlayerCommands>

