SA-MP Forums Archive
More stats - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: More stats (/showthread.php?tid=557129)



More stats - X|Dragon|X - 12.01.2015

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?


Re: More stats - Divergent - 12.01.2015

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
};