Multiple Enum Instances Per Player
#1

Hi,

So say I want to create bank accounts for every player. But maybe I want multiple bank accounts. I have an enum:

Код:
enum pBankAccount{   //bank account enum
	id,
	character_id,
	account_no,
	cash
}
new BankAccount[MAX_PLAYERS][pBankAccount];
If I wanted each player to have multiple bank accounts loaded, so I could access them as such:

Код:
BankAccount[playerid][BankAccountId][cash];
How would I go about doing this in the set up of the enum? Not sure if ive explained that very well, but any help you can give Id appreciate.

Thanks
Reply


Messages In This Thread
Multiple Enum Instances Per Player - by Jonesy96 - 07.06.2016, 15:11
Re: Multiple Enum Instances Per Player - by PrO.GameR - 07.06.2016, 15:24
Re: Multiple Enum Instances Per Player - by Jonesy96 - 07.06.2016, 15:38

Forum Jump:


Users browsing this thread: 2 Guest(s)