PDA

View Full Version : More stats


X|Dragon|X
12/01/2015, 08:05 PM
Can someone explain to me, how can i add more enums, like when you're creating a new script you wanna add a saving system for stuff, now can someone explain to me how do i create other stats like experience points, cash, bank balance, cocaine, stuff like that how do i create them?

Divergent
12/01/2015, 08:15 PM
Show us your current enumerator for player information/data and I can give a more detailed example, however it's pretty simple.



enum pData
{
pLevel,
pMoney,
pBank,
pExperience,
pNumber
};
new PlayerInfo[MAX_PLAYERS][pData]


To add more you can just add it into the enumerator


enum pData
{
pLevel,
pMoney,
pBank,
pExperience,
pNumber,
pFaction,
pFamily,
pRank
};