Assistance with my system
#1

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:
Код:
if(pData[playerid][pFactionRank] >= fData[pData[playerid][pFaction]][fManageRank])
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?
Reply


Messages In This Thread
Assistance with my system - by JaydenJason - 05.08.2016, 13:09
Re: Assistance with my system - by Stinged - 05.08.2016, 13:20
Re: Assistance with my system - by JaydenJason - 05.08.2016, 13:28
Re: Assistance with my system - by kanerandyfirst - 05.08.2016, 13:35
Re: Assistance with my system - by Stinged - 05.08.2016, 13:37
Re: Assistance with my system - by Konstantinos - 05.08.2016, 13:37
Re: Assistance with my system - by JaydenJason - 05.08.2016, 13:54
Re: Assistance with my system - by Stinged - 05.08.2016, 14:03
Re: Assistance with my system - by JaydenJason - 05.08.2016, 14:06
Re: Assistance with my system - by Stinged - 05.08.2016, 14:09

Forum Jump:


Users browsing this thread: 2 Guest(s)