05.08.2016, 13:20
How are you setting the player's faction to -1?
If it's like this:
Then it's incorrect. Do it when the player connects.
If not:
Check if it's == to -1 before using fData[pData[playerid][pFaction][fManageRank], or else it'll be fData[-1][fManageRank], and that's invalid.
If it's like this:
Код:
enum ENUM_NAME { pFaction = -1 };
If not:
Check if it's == to -1 before using fData[pData[playerid][pFaction][fManageRank], or else it'll be fData[-1][fManageRank], and that's invalid.