05.08.2016, 13:09
So I'm still working on my dynamic faction system, it all functions properly. The one thing that bugs me out is if the player's factionid in his data is 0, it displays he's in the first faction listed. I figured out on how that works because the enum count starts from 0 and goes to 19 when my limit is 20, using this for example:
I honestly have no clue on how I could possibly get to doing this. I have tried to set the player's faction to -1 as a default, that just ends up in index array bounds something error.
What could I be doing to start the count from 1 to 20 instead of 0 to 19? If someone understands me?
Код:
if(pData[playerid][pFactionRank] >= fData[pData[playerid][pFaction]][fManageRank])
What could I be doing to start the count from 1 to 20 instead of 0 to 19? If someone understands me?